eureka.dashboard.enabled
Eureka服务端。application.yml
server: port: 8761 eureka: dashboard: enabled: true #首页是否启用,如果为false就不启用首页 path: /x #地址
eureka服务器端地址就是http://localhost:8761/x
eureka.instance.appname
服务提供者microservice-provider-user
eureka.instance.appname=USER-SERVICE-HAHA
意思: Get the name of the application to be registered with eureka
eureka.datacenter: cloud
Application.yml
eureka.datacenter: cloud
eureka.environment: product
eureka.server.enable-self-preservation
eureka.server.enable-self-preservation 是否关闭自我保护模式,可以在测试环境里面关闭
eureka.instance.instance-id
Get the unique Id (within the scope of the appName) of this instance to be registered with eureka
eureka.instance.instance-id=haha