spring的扫描配置 不起作用,扫描不到注解
applicationcontext.xml
<context:component-scan base-package="cn.xm.*">
<context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller"/>
</context:component-scan>
springmvc-servlet.xml
<context:component-scan base-package="com.xm.controller"/>
发现@controller扫描到了,@service那些没有扫描到
就好像是applicationcontext.xml那个扫描注解的配置没有执行扫描