1 eureka, application.properties

server.port=8080
spring.application.name=cvs-register

spring.cloud.config.server.native.search-locations=classpath:/configuration
#spring.cloud.config.server.native.search-locations=/home/configuration
spring.profiles.active=native

eureka.client.registerWithEureka=false
eureka.client.fetchRegistry=false
#eureka.client.serviceUrl.defaultZone=http://192.168.1.82:8080/eureka
eureka.client.serviceUrl.defaultZone=http://localhost:8080/eureka

image.png

image.png

plus, bootstrap优先级高于application.properties


张泽
5 声望1 粉丝

引用和评论

0 条评论