在把application.yml改成bootstrap.yml后启动还是报错,和没改一样的错

来源:6-3 Config Client

殷梦凡

2019-07-14


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 a suitable driver class

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).

写回答

2回答

廖师兄

2019-07-14

这个错是由于pom.xml里配置了引入了数据库的依赖,而.yml配置文件里没有配置数据库或配置格式不正确

0
7
廖师兄
回复
笑着浪荡
你的数据库配置没有放到config-server?
2019-07-28
共7条回复

Jeff_F

2019-07-14

没有配置数据库连接吧 驱动有吗?

0
0

SpringCloud Finchley(M2+RELEASE+SR2)微服务实战

SpringCloud组件实现微服务,【已升级Finchley.Release】

5668 学习 · 2489 问题

查看课程