增加 连接池 查询超时时间、事务超时时间 参数

This commit is contained in:
thinkgem
2024-04-18 21:24:00 +08:00
parent da33d8781b
commit cdd95e1ad5
4 changed files with 17 additions and 8 deletions

View File

@@ -32,6 +32,10 @@ jdbc:
connectTimeout: ~ connectTimeout: ~
socketTimeout: ~ socketTimeout: ~
# 查询超时时间,事务超时时间 v5.7.1+
queryTimeout: ~
transactionQueryTimeout: ~
# 从池中取出连接前进行检验如果检验失败则从池中去除连接并尝试取出另一个4.0.6+ # 从池中取出连接前进行检验如果检验失败则从池中去除连接并尝试取出另一个4.0.6+
testOnBorrow: false testOnBorrow: false
testOnReturn: false testOnReturn: false
@@ -57,19 +61,12 @@ jdbc:
# 设置连接属性,可获取到表的 remark (备注) # 设置连接属性,可获取到表的 remark (备注)
remarksReporting: false remarksReporting: false
# JTA XA 事务v4.0.4+
jta:
enabled: false
# 注意:如果报 oracle.jdbc.xa.OracleXAResource.recover 错误,则需要授权如下: # 注意:如果报 oracle.jdbc.xa.OracleXAResource.recover 错误,则需要授权如下:
# grant select on sys.dba_pending_transactions to jeesite; # grant select on sys.dba_pending_transactions to jeesite;
# grant select on sys.pending_trans$ to jeesite; # grant select on sys.pending_trans$ to jeesite;
# grant select on sys.dba_2pc_pending to jeesite; # grant select on sys.dba_2pc_pending to jeesite;
# grant execute on sys.dbms_system to jeesite; # grant execute on sys.dbms_system to jeesite;
# 事务超时时间单位秒30分钟v4.1.5+
transactionTimeout: 1800
# # 表名和字段名(前缀|后缀是否强制大写v4.1.8+ # # 表名和字段名(前缀|后缀是否强制大写v4.1.8+
# tableAndColumn: # tableAndColumn:
# prefixSuffix: "`|`" # prefixSuffix: "`|`"
@@ -97,6 +94,10 @@ spring:
# maxPoolSize: 20 # maxPoolSize: 20
# keepAliveSeconds: 60 # keepAliveSeconds: 60
# JTA XA 事务spring boot 3 请在 jeesite-module-core/pom.xml 中打开 atomikos 依赖
jta:
enabled: false
# 打印横幅 # 打印横幅
main: main:
bannerMode: "off" bannerMode: "off"

View File

@@ -2,7 +2,7 @@
// 输出子表控件 // 输出子表控件
for (child in table.childList){ for (child in table.childList){
%> %>
<h4 class="form-unit">\${text('${child.comments}')}</h4> <div class="form-unit">\${text('${child.comments}')}</div>
<div class="ml10 mr10 table-form"> <div class="ml10 mr10 table-form">
<table id="${@StringUtils.uncap(child.className)}DataGrid"></table> <table id="${@StringUtils.uncap(child.className)}DataGrid"></table>
<% if(table.tplCategory != 'query'){ %> <% if(table.tplCategory != 'query'){ %>

View File

@@ -121,6 +121,10 @@ jdbc:
# connectTimeout: ~ # connectTimeout: ~
# socketTimeout: ~ # socketTimeout: ~
# #
# # 查询超时时间,事务超时时间 v5.7.1+
# queryTimeout: ~
# transactionQueryTimeout: ~
#
# # 获取连接等待超时时间单位毫秒1分钟4.0.6+ # # 获取连接等待超时时间单位毫秒1分钟4.0.6+
# maxWait: 60000 # maxWait: 60000
# #

View File

@@ -121,6 +121,10 @@ jdbc:
# connectTimeout: ~ # connectTimeout: ~
# socketTimeout: ~ # socketTimeout: ~
# #
# # 查询超时时间,事务超时时间 v5.7.1+
# queryTimeout: ~
# transactionQueryTimeout: ~
#
# # 获取连接等待超时时间单位毫秒1分钟4.0.6+ # # 获取连接等待超时时间单位毫秒1分钟4.0.6+
# maxWait: 60000 # maxWait: 60000
# #