Spring

补充说明:

<context:component-scan>与<context:annotation-config>的区别:
<context:component-scan>包含了<context:annotation-config>的全部功能,通常在使用前者后,就不用再使用后者。
<context:component-scan>可以扫描基于类的注解,而<context:annotation-config>只能在完成了bean的注册之后去处理bean中的方法或者成员变量的注解。

<context:include-filter>与<context:exclude-filter>的type取值:

默认:no

 

原文地址:https://www.cnblogs.com/andremao/p/8029006.html