修改 eureka 实例地址

This commit is contained in:
ajaxfan
2021-02-23 16:59:20 +08:00
parent 05e5991624
commit c7530c086d
2 changed files with 11 additions and 6 deletions

1
.gitignore vendored
View File

@ -31,3 +31,4 @@ build/
### VS Code ###
.vscode/
/bin/

View File

@ -2,6 +2,11 @@ server:
port: 18018
servlet:
context-path: /
seata:
service:
vgroup-mapping:
biz-service-ebtp-extend-service-group: default
# 对应 apollo 配置中心的应用名
app:
@ -15,10 +20,7 @@ apollo:
enabled: true
eagerLoad:
enabled: true
seata:
service:
vgroup-mapping:
biz-service-ebtp-extend-service-group: default
spring:
aop:
auto: true #开启spring的aop配置
@ -98,8 +100,9 @@ eureka:
defaultZone: http://10.242.31.158:5001/eureka,http://10.242.31.158:5002/eureka,http://10.242.31.158:5003/eureka
instance:
prefer-ip-address: true
hostname: ${spring.cloud.client.ip-address}
instance-ip: ${spring.cloud.client.ip-address}:${server.port}
instance-id: http://10.242.31.158:${server.port}
# 这是客户端的注册地址, eureka 会通过这个地址建立管道
ip-address: 10.242.31.158
mybatis-plus:
configuration:
@ -147,6 +150,7 @@ mconfig:
project: biz-service-ebtp-project #项目服务
resps: biz-service-ebtp-resps #应答结构化服务
rsms: biz-service-ebtp-rsms #评审结构化服务
# 用户暴露给 prometheus 的健康数据
management:
endpoints: