diff --git a/pom.xml b/pom.xml index f7e83af66cd4a9d054d2157f2785a41ef229d51a..9931946f94ff8c3e5943161659677208074a8cb2 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 6ec6c2d8ca86071110f45a88db96b13a98bea133..c6465930c1bedb6e10dea3723e76ec608cc5d427 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