在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>