main] o.s.b.d.LoggingFailureAnalysisReporter :
APPLICATION FAILEDTO START
Failed to auto-configure a DataSource: 'spring.datasource.urlReason: Failed to determine a suitab
今天,当我使用Spring Boot重启应用程序时,控制台提示> Process 'command 'non-zero exit value 1这是我的application.java和application.yamlpublic classApplication {
public static void main(String[]
main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
Failed to auto-configure a DataSource: 'spring.datasource.urlReason: Failed to determine a suitab
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could beReason: Failed to determine a suitabledriverclassapplication.properties
然而,当我使用这个配置文件时,我得到了这样的结果:APPLICATION FAILED TO START
Failed to auto-configure a DataSource: 'spring.datasource.url' is not specifiedReason: Failed to determine a suitabl
application.properties中指定了db设置:spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver启动项目时,控制台说:APPLICATION FAILED TO START
Failed to configure a DataSource: &
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could beReason: Failed to determine a suitabledriverclass
我在myproject-db中定义了我的dataSource url application.properties