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


***************************
APPLICATION FAILED TO START
***************************

Description:

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

Reason: Failed to determine suitable jdbc url


Action:

Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.

If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).

报错原因:

           未能确定合适的jdbc url

解决方法

    检查你的:application.properties 中的数据库配置是否 少写 多写 

原文地址:https://www.cnblogs.com/520WANG/p/12482543.html