mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
配置文件优化
This commit is contained in:
@@ -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}
|
||||
|
@@ -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
|
@@ -1,3 +0,0 @@
|
||||
spring:
|
||||
profiles:
|
||||
active: dev
|
Reference in New Issue
Block a user