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

启动springboot报错如下: 解决办法:主方法所在的类注解 原先是 @SpringBootApplication(exclude = {DataSourceAutoConfiguration.class}),改成@SpringBootApplication 就可以正常启动
相关文章
相关标签/搜索