实验17:使用context:exclude-filter指定扫描包时不包含的类


扫描的时候可以排除一些不要的组件
type="annotation" 指定排除规则,按照注解进行排除。标注了指定注解的组件不要
expression="" 注解的全类名
type="assignable" 指定排除某个具体的类,按照类排除
expression="" 类的全类名
type="aspectj" aspectj表达式
type="custom" 自定义一个TypeFilter; 自己写代码决定哪些要使用
type="regex" 写正则表达式
实验16:使用context:include-filter指定扫描包时要包含的类

来源:CSDN
作者:小草dym
链接:https://blog.csdn.net/qq_39368007/article/details/104552239