12345678910111213141516171819202122232425262728 |
- server:
- port: 4000
- spring:
- application:
- name: @artifactId@
- # dev环境
- profiles:
- active: dev
- # 配置中心
- cloud:
- config:
- fail-fast: true
- name: ${spring.application.name}
- profile: ${spring.profiles.active}
- discovery:
- enabled: true
- service-id: pigx-config
- autoconfigure:
- exclude: org.springframework.cloud.gateway.config.GatewayClassPathWarningAutoConfiguration
- # 注册中心配置
- eureka:
- instance:
- prefer-ip-address: true
- client:
- service-url:
- defaultZone: http://pig:pig@pigx-eureka:8761/eureka/
|