修改spring scope的默认配置
spring吧
全部回复
仅看楼主
level 1
请问下 谁修改过spring scope的默认配置吗?因为Spring默认为Singleton,但是基本上都是用到的是prototype?想改默认为prototype
2012年04月23日 10点04分 1
level 4
<bean id = "test" class="cn.com.system.dao.impl.GameDaoImpl" scope="prototype"/>
如果修改全局的scope
<beans>标签中以同样方式添加scope="prototype"即可
2012年05月30日 01点05分 3
level 1
时隔一个月还有人翻出这个帖子。。。。。。还只感谢。。。!
2012年05月30日 03点05分 4
1