SpringBoot扫描包问题

报错信息:Consider defining a bean of type in your configuration

方法一:

使用注解 @ComponentScan(value=”com.common”),其中,com.common为包路径。

方法二:
将启动类Application放在上一级包中。Application启动类必须要保证在包的根目录下。

相关文章:

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