From 2c86a8bd60deed0dd0e044bad6fb83f75d19a332 Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期日, 26 十月 2025 15:05:50 +0800
Subject: [PATCH] Merge branch 'feature-task'
---
ruoyi-admin/src/main/resources/application-prod.yml | 168 ++++++++++++++++----------------------------------------
1 files changed, 48 insertions(+), 120 deletions(-)
diff --git a/ruoyi-admin/src/main/resources/application-prod.yml b/ruoyi-admin/src/main/resources/application-prod.yml
index 0bd32ca..779cce8 100644
--- a/ruoyi-admin/src/main/resources/application-prod.yml
+++ b/ruoyi-admin/src/main/resources/application-prod.yml
@@ -1,40 +1,29 @@
-# 鐢熶骇鐜閰嶇疆
-server:
- # 鏈嶅姟鍣ㄧ殑HTTP绔彛
- port: 8080
- servlet:
- # 搴旂敤鐨勮闂矾寰�
- context-path: /
- tomcat:
- # tomcat鐨刄RI缂栫爜
- uri-encoding: UTF-8
- # 杩炴帴鏁版弧鍚庣殑鎺掗槦鏁帮紝榛樿鍊�100
- accept-count: 1000
- threads:
- # tomcat鏈�澶х嚎绋嬫暟锛岄粯璁や负200
- max: 800
- # Tomcat鍚姩鍒濆鍖栫殑绾跨▼鏁帮紝榛樿鍊�25
- min-spare: 30
-
-# Spring閰嶇疆
+# 鏁版嵁婧愰厤缃�
spring:
- # 鏁版嵁婧愰厤缃�
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driverClassName: com.mysql.cj.jdbc.Driver
druid:
# 涓诲簱鏁版嵁婧�
master:
- url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
+ url: jdbc:mysql://127.0.0.1:3306/mhyl?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
- password: password
+ password: 2025@@gdmh$$
# 浠庡簱鏁版嵁婧�
+ # SQL Server鏁版嵁婧�
+ sqlserver:
+ url: jdbc:sqlserver://39.108.160.52;databaseName=came
+ username: camesa
+ password: camesa
+ driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
+ enabled: true
+ validationQuery: SELECT 1
slave:
# 浠庢暟鎹簮寮�鍏�/榛樿鍏抽棴
enabled: false
- url:
- username:
- password:
+ url:
+ username:
+ password:
# 鍒濆杩炴帴鏁�
initialSize: 5
# 鏈�灏忚繛鎺ユ睜鏁伴噺
@@ -43,6 +32,10 @@
maxActive: 20
# 閰嶇疆鑾峰彇杩炴帴绛夊緟瓒呮椂鐨勬椂闂�
maxWait: 60000
+ # 閰嶇疆杩炴帴瓒呮椂鏃堕棿
+ connectTimeout: 30000
+ # 閰嶇疆缃戠粶瓒呮椂鏃堕棿
+ socketTimeout: 60000
# 閰嶇疆闂撮殧澶氫箙鎵嶈繘琛屼竴娆℃娴嬶紝妫�娴嬮渶瑕佸叧闂殑绌洪棽杩炴帴锛屽崟浣嶆槸姣
timeBetweenEvictionRunsMillis: 60000
# 閰嶇疆涓�涓繛鎺ュ湪姹犱腑鏈�灏忕敓瀛樼殑鏃堕棿锛屽崟浣嶆槸姣
@@ -50,114 +43,49 @@
# 閰嶇疆涓�涓繛鎺ュ湪姹犱腑鏈�澶х敓瀛樼殑鏃堕棿锛屽崟浣嶆槸姣
maxEvictableIdleTimeMillis: 900000
# 閰嶇疆妫�娴嬭繛鎺ユ槸鍚︽湁鏁�
- validationQuery: SELECT 1 FROM DUAL
+ validationQuery: SELECT 1
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
webStatFilter:
- # 寮�鍚痵tat鎷︽埅
enabled: true
statViewServlet:
- # 寮�鍚痙ruid鐩戞帶
enabled: true
- # 璁块棶璺緞涓�/druid/*
+ # 璁剧疆鐧藉悕鍗曪紝涓嶅~鍒欏厑璁告墍鏈夎闂�
+ allow:
url-pattern: /druid/*
- # 鏄惁鍏佽娓呯┖缁熻鏁版嵁
- reset-enable: false
- # 璁剧疆璁块棶鐨勭敤鎴峰悕
- login-username: admin
- # 璁剧疆璁块棶鐨勫瘑鐮�
+ # 鎺у埗鍙扮鐞嗙敤鎴峰悕鍜屽瘑鐮�
+ login-username: ruoyi
login-password: 123456
filter:
stat:
- # 寮�鍚參sql璁板綍
- slow-sql-enabled: true
- # 鎱ql鏃堕棿
+ enabled: true
+ # 鎱QL璁板綍
log-slow-sql: true
- # 鍚堝苟sql
+ slow-sql-millis: 1000
merge-sql: true
wall:
config:
- # 涓嶅厑璁稿垹闄よ〃
- drop-table-allow: false
- # 涓嶅厑璁稿垹闄ゆ暟鎹�
- delete-allow: false
- # 涓嶅厑璁稿垹闄ゆ暟鎹簱
- delete-allow: false
- # 涓嶅厑璁稿垹闄ゆ暟鎹簱
- drop-table-allow: false
- # 鏂囦欢涓婁紶 閰嶇疆
- servlet:
- multipart:
- # 鍗曚釜鏂囦欢澶у皬
- max-file-size: 10MB
- # 璁剧疆鎬讳笂浼犵殑鏂囦欢澶у皬
- max-request-size: 20MB
- # 鏈嶅姟妯″潡
- devtools:
- restart:
- # 鐑儴缃插紑鍏�
- enabled: false
-
-# 瀹氭椂浠诲姟閰嶇疆
-quartz:
- # 鏄惁鍚敤瀹氭椂浠诲姟
- enabled: true
- # 瀹氭椂浠诲姟绾跨▼姹犻厤缃�
- properties:
- org:
- quartz:
- threadPool:
- threadCount: 5
- threadPriority: 5
- threadsInheritContextClassLoaderOfInitializingThread: true
- jobStore:
- class: org.quartz.simpl.RAMJobStore
- scheduler:
- instanceName: clusteredScheduler
- instanceId: AUTO
-
-# MyBatis Plus閰嶇疆
-mybatis-plus:
- # 鎼滅储鎸囧畾鍖呭埆鍚�
- typeAliasesPackage: com.ruoyi.**.domain
- # 閰嶇疆mapper鐨勬壂鎻忥紝鎵惧埌鎵�鏈夌殑mapper.xml鏄犲皠鏂囦欢
- mapperLocations: classpath*:mapper/**/*Mapper.xml
- # 鍔犺浇鍏ㄥ眬鐨勯厤缃枃浠�
- configLocation: classpath:mybatis/mybatis-config.xml
-
-# PageHelper鍒嗛〉鎻掍欢
-pagehelper:
- pagehelper:
- # 鍒嗛〉鍙傛暟鍚堢悊鍖�
- reasonable: true
- # 鏀寔閫氳繃Mapper鎺ュ彛鍙傛暟鏉ヤ紶閫掑垎椤靛弬鏁�
- supportMethodsArguments: true
- # 鍒嗛〉鎻掍欢浼氳嚜鍔ㄦ娴嬪綋鍓嶇殑鏁版嵁搴撻摼鎺�
- helperDialect: mysql
-
-# Swagger閰嶇疆
-swagger:
- # 鏄惁寮�鍚痵wagger
- enabled: false
- # 璇锋眰鍓嶇紑
- pathMapping: /
-
-# 闃叉XSS鏀诲嚮
-xss:
- # 杩囨护寮�鍏�
- enabled: true
- # 鎺掗櫎閾炬帴锛堝涓敤閫楀彿鍒嗛殧锛�
- excludes: /system/notice
- # 鍖归厤閾炬帴
- urlPatterns: /system/*,/monitor/*,/tool/*
-
-# 鏃ュ織閰嶇疆
-logging:
- level:
- com.ruoyi: info
- org.springframework: warn
-
-# 绗笁鏂规帴鍙i厤缃�
+ multi-statement-allow: true
+ # 瀹氭椂浠诲姟閰嶇疆
+ quartz:
+ # 鏄惁鍚敤瀹氭椂浠诲姟
+ enabled: false
+ # 瀹氭椂浠诲姟绾跨▼姹犻厤缃�
+ properties:
+ org:
+ quartz:
+ threadPool:
+ threadCount: 5
+ threadPriority: 5
+ threadsInheritContextClassLoaderOfInitializingThread: true
+ jobStore:
+ class: org.quartz.simpl.RAMJobStore
+ scheduler:
+ instanceName: clusteredScheduler
+ instanceId: AUTO
+# 姘戣埅鎺ュ彛鍦板潃
min:
- apiUrl: http://localhost:8080
\ No newline at end of file
+ apiUrl: https://api.966120.com.cn/v1/ #娴嬭瘯鐜锛歭ocalhost:8011
+qrcode:
+ defaultUrl: https://gzgj.966120.com.cn/evaluation?vehicle={vehicleNo}
\ No newline at end of file
--
Gitblit v1.9.1