- 博客(3)
- 收藏
- 关注
原创 context:component-scan
1.在spring配置文件中: [code="xml"] [/code] 2.在springmvc配置文件中: [code="xml"] [/code] 说明: use-default-filters属性,该属性默认为true,这就意味着会扫描指定包下的全部的标有@Component的类,并注册成bean.也就是@C...
2017-03-17 09:49:53
106
原创 spring util:properties
[code="xml"] [/code] @Value("#{APP_PROP['jdbc.driver']}") private String driver;
2017-03-17 09:27:41
231
原创 spring RequestContextListener
spring IOC容器实例化Bean的方式有: 1.singleton--》在spring IOC容器中仅存在一个Bean实例,Bean以单实例的方式存在。 2.prototype--》每次从容器中调用Bean时,都返回一个新的实例,即每次调用getBean()时,相当于执行new XxxBean()的操作。 3.request--》每次HTTP请求都会创建一个新的Bean,该作用...
2017-03-16 18:15:24
317
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人