配置文件优化

This commit is contained in:
tanghc
2019-07-18 15:46:37 +08:00
parent 194a39a042
commit 9adfe58b0d
15 changed files with 0 additions and 262 deletions

View File

@@ -7,8 +7,6 @@ spring.application.name=sop-registry
eureka.url=http://localhost:1111/eureka/
# ------- 需要改的配置end -------
######### 下面的配置基本不用改 #########
eureka.client.fetch-registry=false
eureka.client.register-with-eureka=false
eureka.client.serviceUrl.defaultZone=${eureka.url}

View File

@@ -1,17 +0,0 @@
eureka:
client:
fetch-registry: false
# 不注册自己
register-with-eureka: false
serviceUrl:
defaultZone: http://${eureka.host}:${eureka.port}/eureka/
# 注册中心地址
host: localhost
port: 1111
server:
port: 1111
spring:
application:
name: sop-registry

View File

@@ -1,3 +0,0 @@
spring:
profiles:
active: dev