No matching bean of type … found for dependency

后端 未结 8 770
孤城傲影
孤城傲影 2020-12-04 14:05

after some days of trying and waitin\' for answers on the springsource forums I\'ll try it here. Running my application results in these exception:

org.sprin         


        
相关标签:
8条回答
  • 2020-12-04 14:55

    I have similar trouble in test config, because of using AOP. I added this line of code in spring-config.xml

    <aop:config proxy-target-class="true"/>
    

    And it works !

    0 讨论(0)
  • 2020-12-04 14:58

    I had a similar issue but I was missing the (@Service or @Component) from the implementation of com.example.my.services.myUser.MyUserServiceImpl

    0 讨论(0)
提交回复
热议问题