From 5c2530a1a03bddf729956026011c7dd6395f91bf Mon Sep 17 00:00:00 2001
From: ‘liusuyi’ <1951119284@qq.com>
Date: 星期五, 11 八月 2023 15:42:49 +0800
Subject: [PATCH] 优化日志打印

---
 src/main/resources/application.yml |   51 +++++++++++++++++++++++++++++++++++++--------------
 1 files changed, 37 insertions(+), 14 deletions(-)

diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index 82d9d81..4f0add0 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -1,10 +1,39 @@
+
 spring:
+  datasource:
+      #  浣跨敤druid鏁版嵁搴撹繛鎺ユ睜
+    druid:
+        #寮�鍚痙ruid鐩戞帶web
+      stat-view-servlet:
+        enabled: true
+      driver-class-name: org.postgresql.Driver
+          #    url: jdbc:postgresql://111.40.46.199:15432/ry-vue?stringtype=unspecified
+          #    username: postgres
+          #    password: Yykj.2021
+      url: jdbc:postgresql://192.168.1.15:5432/ry-vue?stringtype=unspecified
+      username: postgres
+      password: postgres
+      #鏈�澶ц繛鎺ユ暟
+      maxActive: 30
+      #鏈�灏忚繛鎺ユ暟
+      minIdle: 5
+      #鑾峰彇杩炴帴鐨勬渶澶х瓑寰呮椂闂�
+      maxWait: 10000
+      #瑙e喅mysql8灏忔椂鐨勯棶棰�
+      validation-query: SELECT 'X'
+      #绌洪棽杩炴帴鐨勬鏌ユ椂闂撮棿闅�
+      timeBetweenEvictionRunsMillis: 60000
+      #绌洪棽杩炴帴鏈�灏忕┖闂叉椂闂�
+      minEvictableIdleTimeMillis: 300000
   netty:
-    port: 40000
-    enabled: true
+    udp:
+      port: 40000
+      enabled: true
+    tcp:
+      enabled: false
   mqtt:
     host: tcp://192.168.1.15:1883
-    clientId: c3
+    clientId: cc3
     username: admin
     password: xzx12345
     topic: tube
@@ -13,17 +42,9 @@
     enabled: true
   stealelec:
     url: http://iot.zhdk.net:8090/Warning/GetWarning?userName=cy4oil
-  datasource:
-    driver-class-name: org.postgresql.Driver
-#    url: jdbc:postgresql://111.40.46.199:15432/ry-vue?stringtype=unspecified
-#    username: postgres
-#    password: Yykj.2021
-    url: jdbc:postgresql://192.168.1.15:5432/ry-vue?stringtype=unspecified
-    username: postgres
-    password: postgres
 mybatis:
-  type-aliases-package: com.ard.alarm.camera.domain.ArdCameras
-  mapper-locations: classpath:/mapper/*.xml
+  typeAliasesPackage: com.ard.alarm.**.domain
+  mapperLocations: classpath:/mapper/*.xml
 # minio閰嶇疆
 minio:
   endpoint: http://192.168.1.15:9001
@@ -31,4 +52,6 @@
   secretKey: xzx12345
 logging:
   level:
-    com.ard: info
\ No newline at end of file
+    com.ard: info
+server:
+  port: 8088
\ No newline at end of file

--
Gitblit v1.9.3