mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 12:56:28 +08:00
文档分组显示,代码优化
This commit is contained in:
17
sop-registry/src/main/resources/application-dev.yml
Normal file
17
sop-registry/src/main/resources/application-dev.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
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,12 +0,0 @@
|
||||
spring.application.name=sop-registry
|
||||
server.port=1111
|
||||
|
||||
# ---- eureka注册中心 ----
|
||||
# 不注册自己
|
||||
eureka.client.register-with-eureka=false
|
||||
eureka.client.fetch-registry=false
|
||||
# 注册中心地址
|
||||
eureka.host=localhost
|
||||
eureka.port=1111
|
||||
eureka.client.serviceUrl.defaultZone=http://${eureka.host}:${eureka.port}/eureka/
|
||||
|
3
sop-registry/src/main/resources/application.yml
Normal file
3
sop-registry/src/main/resources/application.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
spring:
|
||||
profiles:
|
||||
active: dev
|
Reference in New Issue
Block a user