在windows上可以运行的一个项目在mac上报错org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'test1' is defined. 我用的时spring的自动扫描。配置文件如下:
<!-- plugins -->
<context:component-scan base-package="\" />
<context:annotation-config/>
<bean class="org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor"/>
<!-- include other xml files, up to 4 levels in depth -->
<import resource="classpath*:\config\*.xml" />
<import resource="classpath*:\config\*\*.xml" />
<import resource="classpath*:\config\*\*\*.xml" />
请问这样的错误该如何解决呢?
------解决思路----------------------
让我自己来解决