12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #logging:
- # level:
- # org.springframework.security: INFO
- #hystrix:
- # command:
- # default:
- # execution:
- # isolation:
- # thread:
- # timeoutInMilliseconds: 10000
- eureka:
- instance:
- prefer-ip-address: true #使用IP注册
- instance-id: ${spring.cloud.client.ip-address}:${server.port}
- leaseRenewalIntervalInSeconds: 10
- health-check-url-path: /actuator/health #2.0后actuator的地址发生了变化
- client:
- registryFetchIntervalSeconds: 5
- # serviceUrl:
- # defaultZone: http://eureka1:8761/eureka/
- #endpoints:
- # health:
- # sensitive: false
- # enabled: true
- # actuator:
- # enabled: true
- # sensitive: false
- # beans:
- # sensitive: false
- # enabled: true
- management:
- endpoints:
- web:
- exposure:
- include: refresh,health,info,hystrix.stream
- cors:
- allowed-origins: "*"
- allowed-methods: "*"
- endpoint:
- health:
- show-details: always
- feign:
- hystrix:
- enabled: true
- spring:
- #消息总线
- cloud:
- bus:
- enabled: true
- trace:
- enabled: true
- # #热部署设置
- # thymeleaf:
- # cache: true #关闭缓存,及时刷新
- # devtools:
- # restart:
- # enabled: true #热部署生效
- # additional-paths: src/main/java #设置重启的目录,添加那个目录的文件需要restart(监听目录)
- swagger:
- enable: true
|