1.通配符形式
<context:component-scan base-package="com.*" />2.全路径
<context:component-scan base-package="com.test" />
3.AspectJ語法
<context:component-scan base-package="org.example..*Service+" />项目中遇到 <context:component-scan base-package="org.example.." />
4.正则表达式语法<context:component-scan base-package="org\.example\.Default.*" />