|
@@ -12,11 +12,28 @@ spring:
|
|
|
mvc:
|
|
|
static-path-pattern:
|
|
|
|
|
|
-#eureka设置
|
|
|
eureka:
|
|
|
client:
|
|
|
- service-url:
|
|
|
- defaultZone: http://root:root@discovery.steerinfo.com/eureka/
|
|
|
+ serviceUrl:
|
|
|
+ defaultZone: http://root:root@${EUREKA_HOST:localhost}:${EUREKA_PORT:8061}/eureka/
|
|
|
+# defaultZone: http://root:root@http://172.16.2.149:32101/eureka/
|
|
|
+ metadata-map:
|
|
|
+ cluster: ribbon
|
|
|
+ instance:
|
|
|
+ hostname: dil-dazhou-service
|
|
|
+ status-page-url: http://${SWAGGER_INDEX:tgwl.steerinfo.com}/swagger-ui.html
|
|
|
+ prefer-ip-address: true
|
|
|
+ instance-id: ${spring.cloud.client.ip-address}:${server.port}
|
|
|
+#禁止调用eureka client获取注册列表信息
|
|
|
+ribbon:
|
|
|
+ eureka:
|
|
|
+ enabled: true
|
|
|
+#新版配置,否则后面dashboard无法找到hystrix.stream
|
|
|
+management:
|
|
|
+ endpoints:
|
|
|
+ web:
|
|
|
+ exposure:
|
|
|
+ include: '*'
|
|
|
|
|
|
openfeign:
|
|
|
ColumnDataFeign:
|