spring: application: name: cmp-center server: port: 8761 #启动端口 eureka: # standalone mode client: registerWithEureka: false #false:不作为一个客户端注册到注册中心 fetchRegistry: false #为true时,可以启动,但报异常:Cannot execute request on any known server serviceUrl: defaultZone: http://${EUREKA_HOST:localhost}:${EUREKA_PORT:8761}/eureka/