server: port: ${server.svr-configurations-port} eureka: client: healthcheck: enabled: true #启动监控检查 instance: #eurika使用IP不使用host prefer-ip-address: true #定制化在eurika中显示的名称 instance-id: ${spring.application.name}:${spring.application.instance_id:${server.port}} #security: # user: # name: jw # password: jkzl --- spring: profiles: dev eureka: client: serviceUrl: defaultZone: http://jw:jkzl@127.0.0.1:8761/eureka --- spring: profiles: test eureka: client: serviceUrl: defaultZone: http://jw:jkzl@127.0.0.1:8761/eureka --- spring: profiles: prod eureka: client: serviceUrl: defaultZone: http://jw:jkzl@127.0.0.1:8761/eureka