出现这个问题的时候 , 我试图调用spring注入一个service

@autowired

private XxxService xxxService;

 

但是 , 没有在该service中加@Service的标签.

自动注入的时候,找不到对应的bean,因对应要注入的实现类没有加注解,DAO层用 @Repository ,Service层用 @Service

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
  • 2022-12-23
  • 2021-05-13
  • 2022-12-23
  • 2021-07-12
猜你喜欢
  • 2021-07-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-16
  • 2021-05-19
  • 2022-12-23
相关资源
相似解决方案