@Autowired - No qualifying bean of type found for dependency

前端 未结 17 1567
自闭症患者
自闭症患者 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:38

    This may help you:

    I have the same exception in my project. After searching while I found that I am missing the @Service annotation to the class where I am implementing the interface which I want to @Autowired.

    In your code you can add the @Service annotation to MailManager class.

    @Transactional
    @Service
    public class MailManager extends AbstractManager implements IMailManager {
    

提交回复
热议问题