6-3节,第6分39秒,根据视频教程启动拆分后的order,将application.yml修改成bootstrap.yml,启动报错
来源:6-3 Config Client

wuxichao
2020-04-29
order-dev.yml 文件能在git上获取到本地来
config.yml配置项
spring:
application:
name: springcloud-config
cloud:
config:
server:
git:
uri: https://gitee.com/wuxichao/config-repo.git
username: xxx
password: xxx
basedir: D:Git mpconfigasedir
eureka:
instance:
hostname: localhost
client:
service-url:
defaultZone: http://localhost:8761/eureka/
order-dev.yml 配置项
spring:
application:
name: eureka-order
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
username: ****
password: ****
url: jdbc:mysql://47.104.238.212:3306/springcloudallowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8
jap:
show-sql: true
eureka:
client:
service-url: #Eureka Server 注册中心的地址用于client 与server进行交流
defaultZone: http://localhost:8761/eureka/
fetch-registry: true #表示从fetch server 获取注册信息
env:
dev
2回答
-
廖师兄
2020-05-06
重复问题。https://coding.imooc.com/learn/questiondetail/184904.html
00 -
明子啊
2020-04-30
嗯嗯嗯
00
SpringCloud Finchley(M2+RELEASE+SR2)微服务实战
5672 学习 · 2489 问题
相似问题