原文:springboot无法启动,报错Failed to configure a DataSource: 'url' attribute is not specified and no embedd

解决办法: 在pom.xml中将多余的jar干掉,我这里就是干掉之后就能启动 如果你不想干掉多余的jar,找到启动类,在springbootApplication的注解中加入 SpringBootApplication exclude DataSourceAutoConfiguration.class ,忽略配置,也可以启动 去在application.properties中配置数据库的配置,这里 ...

2020-08-25 11:51 0 750 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM