From 4015ba090376e8fa93a95ef7f4e29ac5f0bed4b8 Mon Sep 17 00:00:00 2001 From: ‘liusuyi’ <1951119284@qq.com> Date: 星期二, 22 八月 2023 15:05:00 +0800 Subject: [PATCH] 日志优化 --- src/main/resources/application.yml | 46 ++++++++++++++++++++++++++++++++++------------ 1 files changed, 34 insertions(+), 12 deletions(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 2e6ddc4..a2f5e97 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,15 +1,43 @@ spring: + servlet: + multipart: + enabled: true + max-file-size: 30MB + max-request-size: 30MB + 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 mqtt: host: tcp://192.168.1.15:1883 - clientId: c3 + clientId: cc3 username: admin password: xzx12345 topic: tube @@ -18,14 +46,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 @@ -34,6 +54,8 @@ endpoint: http://192.168.1.15:9001 accessKey: admin secretKey: xzx12345 +server: + port: 8088 logging: level: - com.ard: info \ No newline at end of file + com.ard.utils.hiksdk.service.impl.FMSGCallBack: debug -- Gitblit v1.9.3