在spring-framework-4.2.6.RELEASE-dist\spring-framework-4.2.6.RELEASE\libs\org\springframework\stereotype
下有这4个类
<context:component-scan base-package="com.urthink.*">
<!--
<context:include-filter type="annotation" expression="org.springframework.stereotype.Service"/>
<context:include-filter type="annotation" expression="org.springframework.stereotype.Repository"/>
<context:include-filter type="annotation" expression="org.springframework.stereotype.Component"/>
-->
<context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller"/>
</context:component-scan>
本文介绍Spring框架4.2.6版本中组件扫描的具体配置方式,包括如何指定基础包进行扫描,并通过注解来包含或排除特定类型的Bean。
2426

被折叠的 条评论
为什么被折叠?



