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
SpringCloud组件实现微服务,【已升级Finchley.Release】
了解课程