SpringBoot Failed to configure a DataSource: …

2020-03-12 16:05:20来源:博客园 阅读 ()

新老客户大回馈,云服务器低至5折

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
如有疑问请与原作者联系

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:SpringBoot2 整合ElasticJob框架,定制化管理流程

下一篇:SpringBoot中用SpringSecurity实现用户登录并返回其拥有哪些角色