You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
SOP/sop-example/sop-springmvc/src/main/resources/eureka-client.properties

27 lines
1.2 KiB

# tomcat端口,根据实际情况填
server.port=2223
# 应用名称serviceId,根据实际情况填
spring.application.name=sop-springmvc
# 注册中心地址,根据实际情况填
eureka.url=http://localhost:1111/eureka/
# zookeeper地址,根据实际情况填
spring.cloud.zookeeper.connect-string=localhost:2181
# ----------- 以下内容不用改 -----------
# 控制是否注册自身到eureka中,本项目虽然不对外提供服务,但需要Eureka监控,在Eureka列表上显示
eureka.registration.enabled=true
# eureka相关配置
# 默认为true,以实现更好的基于区域的负载平衡。
eureka.preferSameZone=true
# 是否要使用基于DNS的查找来确定其他eureka服务器
eureka.shouldUseDns=false
# 由于shouldUseDns为false,因此我们使用以下属性来明确指定到eureka服务器的路由(eureka Server地址)
eureka.serviceUrl.default=${eureka.url}
eureka.decoderName=JacksonJson
# 客户识别此服务的虚拟主机名,这里指的是eureka服务本身
eureka.vipAddress=${spring.application.name}
#服务指定应用名,这里指的是eureka服务本身
eureka.name=${spring.application.name}
#服务将被识别并将提供请求的端口
eureka.port=${server.port}