【已解决】 JavaWeb博客系统后端-连接数据库报错
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-07-30 13:49:16.475 ERROR 7504 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
各种方法都尝试过了,数据库测试连接也没有问题
要创建application.properties文件,而不是application,这样问题就可以解决了。
你的application.yml文件呢,有配置数据库相关内容吗?