@Autowired - No qualifying bean of type found for dependency

前端 未结 17 1572
自闭症患者
自闭症患者 2020-12-07 15:00

I\'ve started my project by creating entities, services and JUnit tests for services using Spring and Hibernate. All of this works great. Then I\'ve added spring-mvc to make

17条回答
  •  孤城傲影
    2020-12-07 15:27

    Can you try annotating only your concrete implementation with @Component? Maybe the following answer could help. It is kind of a similar problem. I usually put Spring annotations in the implementation classes.

    https://stackoverflow.com/a/10322456/2619091

提交回复
热议问题