原文:Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.

SpringBoot项目编译成功,启动报错 提示信息很明显,通过查看依赖关系,可以找到原因 导致这个问题的原因是因为,在 pom.xml 配置文件中,配置了数据连接技术 spring boot starter jdbc 包 ,在启动配置文件时 ,Spring Boot 的自动装配机制就会去配置文件中找,相关的数据库的连接配置信息,如果找不到则抛出异常信息。 解决方法: .在 SpringBoot ...

2019-03-01 02:38 0 1056 推荐指数:

查看详情

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