From 14ee62efbc5d6278027fe8c2025bfa11e8a6038d Mon Sep 17 00:00:00 2001 From: qinyingjie Date: Fri, 9 Dec 2022 11:42:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=B7=BB=E5=8A=A0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- src/main/resources/application.yaml | 16 +++------------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/pom.xml b/pom.xml index f7e83af..9931946 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.springframework.boot spring-boot-starter-parent - 2.7.3 + 2.5.6 com.kwan diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 6ec6c2d..c646593 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -1,15 +1,5 @@ server: port: 8761 -spring: - application: - name: eureka-server -#eureka的配置分为3类,server client 实例的 eureka-server既是服务端又是客户端 -eureka: - server: - eviction-interval-timer-in-ms: 1000 #服务端间隔多少毫秒做定期删除的操作 - renewal-percent-threshold: 0.85 #续约百分比,超过85%的应用没有和你续约,那么eureka会保护服务,不会提出任何一个 - instance: #实例的配置 - instance-id: ${eureka.instance.hostname}:${spring.application.name}:${server.port} #主机名称:应用名称:端口号 - hostname: localhost #主机名称或则服务的ip - prefer-ip-address: true #以ip的形式显示具体的服务信息 - lease-renewal-interval-in-seconds: 5 #服务实例的续约时间间隔 \ No newline at end of file + +swagger: + enable: true \ No newline at end of file -- GitLab