spring资料

spring组件扫描<context:component-scan/>使用详解

http://blog.sina.com.cn/s/blog_5114d71d0100rk7b.html

。。

有了<context:component-scan>,另一個<context:annotation-config/>標籤根本可以移除掉。。。

use-default-filters:默认true,会忽略下面的子元素,如<context:include-filter,这样会扫描内置的 @Component@Service@Controller等注解;false时子元素可用。

可以只使用一个component-scan配置,也可以使用多个,分别扫描不同的注解。

spring-autowire机制

http://www.cnblogs.com/zhongkl/archive/2011/06/03/2071257.html

如何使用spring的autowire为servlet注入Bean

http://www.blogjava.net/usherlight/archive/2009/09/04/293864.html

DispatcherServlet作用

http://www.iteye.com/topic/1125421

spring mvc的核心,spring mvc作为spring的一部分,通过 【子WebApplicationContext【方式融合到根WebApplicationContext中

spring模块化,使用下面注解可以将spring组件封装在jar内部

@Configuration
@ImportResource("classpath:/monitor-context.xml")

猜你喜欢

转载自yourenyouyu2008.iteye.com/blog/2015741