| | |
| | | eureka: |
| | | instance: |
| | | ###注册中心ip地址 |
| | | hostname: 172.17.97.143 |
| | | # hostname: 172.17.97.143 |
| | | hostname: 127.0.0.1 |
| | | lease-renewal-interval-in-seconds: 30 |
| | | lease-expiration-duration-in-seconds: 30 |
| | | instance-id: ${spring.cloud.client.ip-address}:${spring.application.name}:${server.port} |
| | |
| | | ##注册地址 |
| | | #defaultZone: http://${spring.security.user.name}:${spring.security.user.password}@${eureka.instance.hostname}:9002/eureka/,http://${spring.security.user.name}:${spring.security.user.password}@${eureka.instance.hostname}:9003/eureka/ |
| | | #defaultZone: http://${eureka.instance.hostname}:9002/eureka/,http://${eureka.instance.hostname}:9003/eureka/ |
| | | defaultZone: http://172.17.97.143:9001/eureka/,http://192.168.1.202:9001/eureka/ |
| | | # defaultZone: http://172.17.97.143:9001/eureka/,http://192.168.2.240:9001/eureka/ |
| | | defaultZone: http://127.0.0.1:9001/eureka/ |
| | | ####因为自己是注册中心,是否需要将自己注册给自己的注册中心(集群的时候是需要是为true) |
| | | register-with-eureka: false |
| | | ###因为自己是注册中心, 不需要去检索服务信息 |