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 | 42 ++++++++++++++++++++++++++++++------------ 1 files changed, 30 insertions(+), 12 deletions(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 50a9b71..4f0add0 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,12 +1,36 @@ + 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: udp: port: 40000 enabled: true tcp: - host: 112.98.126.2 - port: 1200 - enabled: true + enabled: false mqtt: host: tcp://192.168.1.15:1883 clientId: cc3 @@ -18,14 +42,6 @@ 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: typeAliasesPackage: com.ard.alarm.**.domain mapperLocations: classpath:/mapper/*.xml @@ -36,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