svr-configurations.yml 541 B

1234567891011121314151617181920212223242526272829
  1. server:
  2. context-path: ${server.context-path.svr-configurations-context-path}
  3. #发现服务
  4. eureka:
  5. client:
  6. healthcheck:
  7. enabled: true #启动监控检查
  8. instance:
  9. #eurika使用IP不使用host
  10. prefer-ip-address: true
  11. #定制化在eurika中显示的名称
  12. ##instance-id: ${spring.application.name}:${spring.application.instance_id:${server.port}}
  13. instance-id: ${spring.cloud.client.ipAddress}:${server.port}
  14. ---
  15. spring:
  16. profiles: jwdev
  17. ---
  18. spring:
  19. profiles: jwtest
  20. ---
  21. spring:
  22. profiles: jwprod