admin管理员组文章数量:1571368
1、If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
解决方法:@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
2、nested exception is java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
网上有答案 (详情):
(1)引入mybatis依赖,但我的项目已经引入了所以不是mybatis依赖的问题。
(2)将配置文件改成yml格式,我的项目也已经是yml,也排除;
(3)引入druid-spring-boot-starter,我的项目之前引入的是druid,改成
druid-spring-boot-starter后问题解决。
感谢这位老兄😊;
本文标签: SpringBoo
版权声明:本文标题:Springboo启动遇到的问题 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dongtai/1727689475a1125702.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论