当前位置: 代码迷 >> J2EE >> mac上运行部了在window下写好的java程序解决办法
  详细解决方案

mac上运行部了在window下写好的java程序解决办法

热度:21   发布时间:2016-04-17 23:35:53.0
mac上运行部了在window下写好的java程序
在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" />


请问这样的错误该如何解决呢?
------解决思路----------------------
让我自己来解决
  相关解决方案