spring杂碎
1:有时在使用spring组件扫描时需要对某些包过滤,配置如下:
?
<ctx:component-scan base-package="com,edu"><ctx:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller"/></ctx:component-scan>?
?
?这样就可以通过exclude-filter把所有@Controller组件过滤掉
??
?