From 93430938a25ab3d4e218a2198ae1b24a516f6382 Mon Sep 17 00:00:00 2001
From: zhouxiantao <1026371446@qq.com>
Date: Tue, 17 Jun 2025 17:31:15 +0800
Subject: [PATCH] freat:粤政易相关代码

---
 dyh-eureka/src/main/resources/config/application-dev.yml |   35 +++++++++++++++++++++++++++++++++++
 1 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/dyh-eureka/src/main/resources/config/application-dev.yml b/dyh-eureka/src/main/resources/config/application-dev.yml
new file mode 100644
index 0000000..8db2398
--- /dev/null
+++ b/dyh-eureka/src/main/resources/config/application-dev.yml
@@ -0,0 +1,35 @@
+#server配置
+server:
+  port: 9001
+
+#spring配置
+spring:
+  application:
+    name: dyh-eureka
+  datasource:
+    druid:
+      stat-view-servlet:
+        enabled: false
+
+#注册中心配置
+eureka:
+  client:
+    serviceUrl:
+      defaultZone: http://localhost:9001/eureka #集群部署,互相注册
+    register-with-eureka: false #是否注册到注册中心 单点部署设置false 集群部署设置true
+    fetch-registry: false #是否从注册中心拉取注册服务列表 单点部署设置false 集群部署设置true
+  server:
+    enable-self-preservation: false #自我保护模式,打开坑比好处多,所以先关闭它
+    eviction-interval-timer-in-ms: 5000 #主动清理无效节点的时间间隔 默认60000毫秒,即60秒
+    renewal-threshold-update-interval-ms: 120000 #心跳阈值计算周期,单位毫秒,默认为15分钟,如果开启自我保护模式,可以改一下这个配置
+    peer-node-read-timeout-ms: 500 #读取对等节点服务器复制的超时的时间,单位毫秒,默认为200
+    useReadOnlyResponseCache: false  #禁用readOnlyCacheMap
+  instance:
+    prefer-ip-address: true
+    instance-id: ${spring.cloud.client.ip-address}:${server.port}
+    #hostname: localhost
+    lease-renewal-interval-in-seconds: 5 # 心跳间隔时间(默认是30秒)
+    lease-expiration-duration-in-seconds: 15 # 没有心跳的淘汰时间间隔(默认是90秒)
+    status-page-url-path: /actuator/info #eureka注册中心的url link
+    health-check-url-path: /actuator/health #健康检查的url
+

--
Gitblit v1.8.0