config server 启动可以拿到配置文件,但是启动order就报错,yml文件也改成了bootstrap.yml,
bootstrap的配置内容:
spring:
application:
name: order
cloud:
config:
discovery:
enabled: true
service-id: CONFIG
profile: dev
debug: true
报错内容:
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).
图片描述
SpringCloud组件实现微服务,【已升级Finchley.Release】
了解课程