通常是以下几种可能:

1.没有加@Service注解,或者是这个bean没有放在标注了@Configuration这个注解的类下。

2.SpringBoot启动类没有开启扫描 @ComponentScan(value = {"com.bihang"})

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-27
  • 2021-07-17
  • 2021-06-28
  • 2022-12-23
  • 2021-10-08
  • 2021-05-07
猜你喜欢
  • 2021-08-10
  • 2021-11-01
  • 2021-12-10
  • 2021-05-14
  • 2022-01-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案