文档分组显示,代码优化

This commit is contained in:
tanghc
2019-04-19 14:39:45 +08:00
parent e1e7b2c738
commit 5bd787b7e3
25 changed files with 702 additions and 344 deletions

View 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

View File

@@ -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/

View File

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