|
@@ -1,7 +1,7 @@
|
|
api.version: api/v1
|
|
api.version: api/v1
|
|
spring:
|
|
spring:
|
|
profiles:
|
|
profiles:
|
|
- include: ${SPRING_PROFILES:prod}
|
|
|
|
|
|
+ include: ${SPRING_PROFILES:dev}
|
|
jackson:
|
|
jackson:
|
|
date-format: yyyy-MM-dd HH:mm:ss
|
|
date-format: yyyy-MM-dd HH:mm:ss
|
|
time-zone: GMT+8
|
|
time-zone: GMT+8
|
|
@@ -12,16 +12,19 @@ spring:
|
|
mvc:
|
|
mvc:
|
|
static-path-pattern:
|
|
static-path-pattern:
|
|
|
|
|
|
-
|
|
|
|
#eureka设置
|
|
#eureka设置
|
|
eureka:
|
|
eureka:
|
|
client:
|
|
client:
|
|
service-url:
|
|
service-url:
|
|
defaultZone: http://root:root@${EUREKA_HOST:172.16.33.166}:${EUREKA_PORT:8081}/eureka/
|
|
defaultZone: http://root:root@${EUREKA_HOST:172.16.33.166}:${EUREKA_PORT:8081}/eureka/
|
|
|
|
+ register-with-eureka: false #表示向EurekaServer注册自己 默认为true
|
|
|
|
+ fetch-registry: false #是否从EurekaServer抓取已有的注册信息,默认为true,单节点无所谓,集群必须设置为true才能配合ribbon使用负载均衡
|
|
|
|
+
|
|
instance:
|
|
instance:
|
|
prefer-ip-address: true
|
|
prefer-ip-address: true
|
|
status-page-url: http://${spring.cloud.client.ip-address}:${server.port}/swagger-ui.html#/
|
|
status-page-url: http://${spring.cloud.client.ip-address}:${server.port}/swagger-ui.html#/
|
|
instance-id: ${spring.cloud.client.ip-address}:${server.port}
|
|
instance-id: ${spring.cloud.client.ip-address}:${server.port}
|
|
|
|
+
|
|
genxml:
|
|
genxml:
|
|
pth: com/agit
|
|
pth: com/agit
|
|
cache:
|
|
cache:
|