jta通过

This commit is contained in:
thinkgem
2023-06-29 12:17:05 +08:00
parent cce67cf0ad
commit f18682a3a9
6 changed files with 38 additions and 43 deletions

View File

@@ -95,6 +95,13 @@
<version>${project.parent.version}</version>
</dependency>
<!-- JTA 事务(当 spring.jta.enabled 为 true 的时候开启,不使用 jta 的时候不要引入该依赖)
<dependency>
<groupId>com.atomikos</groupId>
<artifactId>transactions-spring-boot3-starter</artifactId>
<version>${atomikos.version}</version>
</dependency> -->
<!-- ELK 日志收集 -->
<dependency>
<groupId>net.logstash.logback</groupId>

View File

@@ -53,19 +53,6 @@ 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: "`|`"

View File

@@ -21,7 +21,7 @@
<properties>
<!-- common version setting -->
<!-- common tools version setting -->
<commons-io.version>2.13.0</commons-io.version>
<commons-text.version>1.10.0</commons-text.version>
<commons-email.version>1.5</commons-email.version>
@@ -30,7 +30,6 @@
<snakeyaml.version>2.0</snakeyaml.version>
<!--<jackson.version>2.12.6</jackson.version>-->
<httpclient.version>4.5.14</httpclient.version>
<!--<activation.version>1.1.1</activation.version>-->
<UserAgentUtils.version>1.21</UserAgentUtils.version>
<!--<metadata-extractor.version>2.11.0</metadata-extractor.version>-->
<thumbnailator.version>0.4.19</thumbnailator.version>

View File

@@ -217,19 +217,6 @@ jdbc:
# com.jeesite.modules.sys = default
# com.jeesite.modules.filemanager = ds2
# # 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: "`|`"
@@ -260,6 +247,20 @@ spring:
mvc:
pathmatch:
matching-strategy: ANT_PATH_MATCHER
# JTA XA 事务spring boot 3 请在 jeesite-module-core/pom.xml 中打开 atomikos 依赖
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分钟spring boot 3
transaction:
default-timeout: 30m
# # Redis 连接参数 RedisProperties
# redis:

View File

@@ -45,12 +45,12 @@
<version>${project.parent.version}</version>
</dependency>
<!-- 在线文档接口
<!-- 在线文档接口 -->
<dependency>
<groupId>com.jeesite</groupId>
<artifactId>jeesite-module-swagger</artifactId>
<version>${project.parent.version}</version>
</dependency> -->
</dependency>
<!-- 内容管理模块 -->
<dependency>

View File

@@ -217,19 +217,6 @@ jdbc:
# com.jeesite.modules.sys = default
# com.jeesite.modules.filemanager = ds2
# # 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: "`|`"
@@ -261,6 +248,20 @@ spring:
pathmatch:
matching-strategy: ANT_PATH_MATCHER
# JTA XA 事务spring boot 3 请在 jeesite-module-core/pom.xml 中打开 atomikos 依赖
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分钟spring boot 3
transaction:
default-timeout: 30m
# # Redis 连接参数 RedisProperties
# redis:
# host: 127.0.0.1