bootstrap.yml 589 B

12345678910111213141516171819202122232425262728
  1. server:
  2. port: 4000
  3. spring:
  4. application:
  5. name: @artifactId@
  6. # dev环境
  7. profiles:
  8. active: dev
  9. # 配置中心
  10. cloud:
  11. config:
  12. fail-fast: true
  13. name: ${spring.application.name}
  14. profile: ${spring.profiles.active}
  15. discovery:
  16. enabled: true
  17. service-id: pigx-config
  18. autoconfigure:
  19. exclude: org.springframework.cloud.gateway.config.GatewayClassPathWarningAutoConfiguration
  20. # 注册中心配置
  21. eureka:
  22. instance:
  23. prefer-ip-address: true
  24. client:
  25. service-url:
  26. defaultZone: http://pig:pig@pigx-eureka:8761/eureka/