启动springboot报错如下:

springboot集成mybatis报错:Unsatisfied dependency expressed through field 'cityDao'; nested exception

解决办法:主方法所在的类注解

原先是
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class}),改成@SpringBootApplication
就可以正常启动

相关文章:

  • 2022-12-23
  • 2021-11-07
  • 2021-03-30
  • 2022-12-23
  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
  • 2021-11-07
猜你喜欢
  • 2022-01-26
  • 2022-12-23
  • 2022-12-23
  • 2021-08-02
  • 2022-03-02
  • 2022-12-23
  • 2021-08-02
相关资源
相似解决方案