Consider defining a bean of type ‘com.ls.config.DBConfig1’ in your configuration的解决方案(已解决)

Consider defining a bean of type 'com.ls.config.DBConfig1' in your configuration.出现的解决方案,网上找了很多方法,都不见效,后来自己,仔细阅读错误发现,com.ls.config.DBConfig1这个类没有被注入到Spring容器中,于是我在该加上了@Component这个注解之后,便得到解决。

Consider defining a bean of type 'com.ls.config.DBConfig1' in your configuration
如果还是没有解决,可以私信我!!!

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-02
猜你喜欢
  • 2021-04-24
  • 2021-07-07
  • 2021-08-31
  • 2021-06-30
  • 2021-10-09
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案