1.检查你项目中有没有多余的@Autowired   如果你引入了多余(或者错误的)的@Autowired就会导致以上错误

 

项目运行中出现Injection of autowired dependencies failed错误

 

一般这个错误都是发生在controll,dao,service中,看看你的注解是否有多余或者错误

Dao—@Repository

Service—@Service

Controller—@Controller       

相关文章:

  • 2021-06-07
  • 2021-04-09
  • 2021-11-01
  • 2021-10-04
  • 2022-01-17
  • 2021-08-09
  • 2022-01-25
  • 2021-10-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
  • 2022-12-23
相关资源
相似解决方案