@@ -27,11 +27,25 @@ server:
port: 8769
eureka:
+ instance:
+ leaseRenewalIntervalInSeconds: 10
+ health-check-url-path: /actuator/health #2.0后actuator的地址发生了变化
client:
+ registryFetchIntervalSeconds: 5
serviceUrl:
defaultZone: http://${myuri}:8761/eureka/
management:
+ endpoints:
+ web:
+ exposure:
+ include: "*"
+ cors:
+ allowed-origins: "*"
+ allowed-methods: "*"
+ endpoint:
+ health:
+ show-details: ALWAYS
security:
enabled: false