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

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

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

View File

@@ -2,7 +2,7 @@
// 输出子表控件
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">
<table id="${@StringUtils.uncap(child.className)}DataGrid"></table>
<% if(table.tplCategory != 'query'){ %>