From cdd95e1ad5369dc4f290590b1f843e6a4622a67e Mon Sep 17 00:00:00 2001 From: thinkgem Date: Thu, 18 Apr 2024 21:24:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E6=B1=A0=20=E6=9F=A5=E8=AF=A2=E8=B6=85=E6=97=B6=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E3=80=81=E4=BA=8B=E5=8A=A1=E8=B6=85=E6=97=B6=E6=97=B6?= =?UTF-8?q?=E9=97=B4=20=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/config/jeesite-core.yml | 15 ++++++++------- .../modules/gen/include/formChildTable.html | 2 +- web-api/src/main/resources/config/application.yml | 4 ++++ web/src/main/resources/config/application.yml | 4 ++++ 4 files changed, 17 insertions(+), 8 deletions(-) diff --git a/modules/core/src/main/resources/config/jeesite-core.yml b/modules/core/src/main/resources/config/jeesite-core.yml index afe5de6c..f94624e6 100644 --- a/modules/core/src/main/resources/config/jeesite-core.yml +++ b/modules/core/src/main/resources/config/jeesite-core.yml @@ -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: diff --git a/modules/core/src/main/resources/templates/modules/gen/include/formChildTable.html b/modules/core/src/main/resources/templates/modules/gen/include/formChildTable.html index 9d6d34b1..81514205 100644 --- a/modules/core/src/main/resources/templates/modules/gen/include/formChildTable.html +++ b/modules/core/src/main/resources/templates/modules/gen/include/formChildTable.html @@ -2,7 +2,7 @@ // 输出子表控件 for (child in table.childList){ %> -

\${text('${child.comments}')}

+
\${text('${child.comments}')}
<% if(table.tplCategory != 'query'){ %> diff --git a/web-api/src/main/resources/config/application.yml b/web-api/src/main/resources/config/application.yml index bc01745d..255c1ee7 100644 --- a/web-api/src/main/resources/config/application.yml +++ b/web-api/src/main/resources/config/application.yml @@ -121,6 +121,10 @@ jdbc: # connectTimeout: ~ # socketTimeout: ~ # +# # 查询超时时间,事务超时时间 (v5.7.1+) +# queryTimeout: ~ +# transactionQueryTimeout: ~ +# # # 获取连接等待超时时间,单位毫秒(1分钟)(4.0.6+) # maxWait: 60000 # diff --git a/web/src/main/resources/config/application.yml b/web/src/main/resources/config/application.yml index ca22e578..4ee8a8d8 100644 --- a/web/src/main/resources/config/application.yml +++ b/web/src/main/resources/config/application.yml @@ -121,6 +121,10 @@ jdbc: # connectTimeout: ~ # socketTimeout: ~ # +# # 查询超时时间,事务超时时间 (v5.7.1+) +# queryTimeout: ~ +# transactionQueryTimeout: ~ +# # # 获取连接等待超时时间,单位毫秒(1分钟)(4.0.6+) # maxWait: 60000 #