From 24eb4c26f48f537354f37ebd86d2292acc0dfbf6 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期六, 06 五月 2023 10:51:32 +0800 Subject: [PATCH] 1 --- src/main/resources/application.yml | 49 +++++++++++++++---------------------------------- 1 files changed, 15 insertions(+), 34 deletions(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index d073f05..8465e9b 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -5,10 +5,10 @@ port: 12316 servlet: context-path: /server - application: - name: server spring: + application: + name: server # redis redis: database: 0 @@ -16,11 +16,12 @@ port: 6369 password: rediS_5L#F4_Server timeout: 90000 # 杩炴帴瓒呮椂鏃堕暱锛堟绉掞級 - pool: - max-active: 1000 # 杩炴帴姹犳渶澶ц繛鎺ユ暟锛堜娇鐢ㄨ礋鍊艰〃绀烘病鏈夐檺鍒讹級 - max-wait: -1 # 杩炴帴姹犳渶澶ч樆濉炵瓑寰呮椂闂达紙浣跨敤璐熷�艰〃绀烘病鏈夐檺鍒讹級 - max-idle: 10 # 杩炴帴姹犱腑鐨勬渶澶х┖闂茶繛鎺� - min-idle: 5 # 杩炴帴姹犱腑鐨勬渶灏忕┖闂茶繛鎺� + lettuce: + pool: + max-active: 1000 # 杩炴帴姹犳渶澶ц繛鎺ユ暟锛堜娇鐢ㄨ礋鍊艰〃绀烘病鏈夐檺鍒讹級 + max-wait: -1 # 杩炴帴姹犳渶澶ч樆濉炵瓑寰呮椂闂达紙浣跨敤璐熷�艰〃绀烘病鏈夐檺鍒讹級 + max-idle: 10 # 杩炴帴姹犱腑鐨勬渶澶х┖闂茶繛鎺� + min-idle: 0 # 杩炴帴姹犱腑鐨勬渶灏忕┖闂茶繛鎺� # session session: timeout: PT20M # 20鍒嗛挓 @@ -48,12 +49,12 @@ password: Postgres!_14_Lf #password: postgres driver-class-name: org.postgresql.Driver - paltform: POSTGRESQL + platform: POSTGRESQL type: com.alibaba.druid.pool.DruidDataSource # 閰嶇疆鐩戞帶缁熻鎷︽埅鐨刦ilters锛宻tat:鐩戞帶缁熻銆乴og4j锛氭棩蹇楄褰曘�亀all锛氶槻寰ql娉ㄥ叆 filters: stat,wall,log4j # 閫氳繃connectProperties灞炴�ф潵鎵撳紑mergeSql鍔熻兘锛涙參SQL璁板綍 - connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=500 + connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000 # 瓒呰繃鏃堕棿闄愬埗鏄惁鍥炴敹 removeAbandoned: true # 瓒呮椂鏃堕棿锛涘崟浣嶄负绉掋��180绉�=3鍒嗛挓 @@ -65,9 +66,9 @@ ## 鍒濆鍖栧ぇ灏忥紝鏈�灏忥紝鏈�澶� initial-size: 5 min-idle: 5 - max-active: 50 + max-active: 100 ## 閰嶇疆鑾峰彇杩炴帴绛夊緟瓒呮椂鐨勬椂闂� - max-wait: 60000 + max-wait: 6000 # 閰嶇疆闂撮殧澶氫箙鎵嶈繘琛屼竴娆℃娴嬶紝妫�娴嬮渶瑕佸叧闂殑绌洪棽杩炴帴锛屽崟浣嶆槸姣 time-between-eviction-runs-millis: 60000 # 閰嶇疆涓�涓繛鎺ュ湪姹犱腑鏈�灏忕敓瀛樼殑鏃堕棿锛屽崟浣嶆槸姣 @@ -95,29 +96,8 @@ #login-password: ad_!Druid!_min # 鍏佽璁块棶鐨勫湴鍧�锛屽鏋渁llow娌℃湁閰嶇疆鎴栬�呬负绌猴紝鍒欏厑璁告墍鏈夎闂� allow: - # 鎷掔粷璁块棶鐨勫湴鍧�锛宒eny浼樺厛浜巃llow锛屽鏋滃湪deny鍒楄〃涓紝灏辩畻鍦╝llow鍒楄〃涓紝涔熶細琚嫆缁� + # 鎷掔粷璁块棶鐨勫湴鍧�锛宒eny浼樺厛浜巃llow deny: - # 閰嶇疆WebStatFilter锛岀敤浜庨噰闆唚eb鍏宠仈鐩戞帶鐨勬暟鎹� - web-stat-filter: - # web url鐩戞帶 - enabled: true - # session鐩戞帶 - session-stat-enable: true - # session鐨勬渶澶т釜鏁帮紝榛樿100 - session-stat-max-count: 1000 - # 杩囨护鎵�鏈塽rl - url-pattern: /* - # 鎺掗櫎涓�浜涗笉蹇呰鐨剈rl - exclusions: "*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*" - # 鑷繁閰嶇疆鐩戞帶缁熻鎷︽埅鐨刦ilter - filter: - # 寮�鍚疍ruidDataSource鐨勭姸鎬佺洃鎺� - stat: - enabled: true - db-type: postgresql - # 寮�鍚參sql鐩戞帶锛岃秴杩�2s 灏辫涓烘槸鎱ql锛岃褰曞埌鏃ュ織涓� - log-slow-sql: true - slow-sql-millis: 2000 # mybatis #mybatis: @@ -126,7 +106,8 @@ # mapper-locations: classpath:mapper/**/*.xml mybatis-plus: - map-underscore-to-camel-case: true + configuration: + map-underscore-to-camel-case: true type-aliases-package: com.lf.server.entity config-location: classpath:mybatis.xml mapper-locations: classpath:mapper/**/*.xml -- Gitblit v1.9.3