|
@ -4,22 +4,6 @@ spring:
|
|
|
jmx:
|
|
|
default-domain: ${spring.application.name}
|
|
|
|
|
|
security:
|
|
|
user:
|
|
|
name: jw
|
|
|
password: jkzl
|
|
|
|
|
|
eureka:
|
|
|
client:
|
|
|
healthcheck:
|
|
|
enabled: true #启动监控检查
|
|
|
instance:
|
|
|
#eurika使用IP不使用host
|
|
|
prefer-ip-address: true
|
|
|
#定制化在eurika中显示的名称
|
|
|
##instance-id: ${spring.application.name}:${spring.application.instance_id:${server.port}}
|
|
|
instance-id: ${spring.cloud.client.ipAddress}:${server.port}
|
|
|
|
|
|
|
|
|
---
|
|
|
spring:
|
|
@ -33,7 +17,7 @@ spring:
|
|
|
# uri: http://192.168.1.220:10080/chenweida/jw.config.git
|
|
|
# uri: http://192.168.116.100:10080/chenweida/mini.jw.config.git
|
|
|
# uri: http://192.168.1.220:10080/jiwei/jw.config.git
|
|
|
uri: 172.19.103.33:1221/jiwei/jw.config.git
|
|
|
uri: http://192.168.1.220:10080/jiwei/jw.config.git
|
|
|
default-label: jwdev
|
|
|
|
|
|
|
|
@ -66,14 +50,14 @@ spring:
|
|
|
|
|
|
---
|
|
|
##不想用远程的git 可以在环境变量配置native 开启本地配置
|
|
|
spring:
|
|
|
profiles:
|
|
|
active: native
|
|
|
|
|
|
##git配置
|
|
|
cloud:
|
|
|
config:
|
|
|
failFast: true #启动快速失败 即链接不到配置服务就启动失败
|
|
|
server:
|
|
|
native:
|
|
|
search-locations: file:D:\Software\soft\IdeaWorkSpace\jw-project\jw.config ##本地的got配置路径
|
|
|
#spring:
|
|
|
# profiles:
|
|
|
# active: native
|
|
|
#
|
|
|
###git配置
|
|
|
# cloud:
|
|
|
# config:
|
|
|
# failFast: true #启动快速失败 即链接不到配置服务就启动失败
|
|
|
# server:
|
|
|
# native:
|
|
|
# search-locations: file:D:\Software\soft\IdeaWorkSpace\jw-project\jw.config ##本地的got配置路径
|