spring boot不能注入service的解决方法
标题

解决办法

@SpringBootApplication(scanBasePackages={"com.yxwl.service"})

在spring boot启动类上加   scanBasePackages={"service所在包名"}

 

 

抢票就用心到抢票软件   https://www.xdticket.com/

 

 

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
  • 2021-10-13
  • 2021-11-29
猜你喜欢
  • 2021-11-30
  • 2021-10-16
  • 2021-09-09
  • 2021-10-05
  • 2022-12-23
  • 2022-12-23
  • 2021-05-12
相关资源
相似解决方案