server: port: 7002 eureka: instance: hostname: eureka-7002.com #定义eureka实例所在的主机名称 client: register-with-eureka: false #是否要将自己注册进去 fetch-registry: false #是否要被检索 service-url: defaultZone: http://QingSe:hello@eureka-7001.com:7001/eureka/,http://QingSe:hello@eureka-7003.com:7003/eureka/ server: eviction-interval-timer-in-ms: 60000 #设置无效服务清理间隔,默认60毫秒 enable-self-preservation: true #关闭保护模式 spring: security: user: name: QingSe password: hello roles: - QingSe