From 1772fde535e9339c97cf103b5237b5fb69b61971 Mon Sep 17 00:00:00 2001 From: asahi Date: Sun, 7 Apr 2024 23:18:16 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=85=E8=AF=BBatomikos=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 分布式事务/atomikos/atomikos.md | 33 ++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/分布式事务/atomikos/atomikos.md b/分布式事务/atomikos/atomikos.md index 951947d..2eca699 100644 --- a/分布式事务/atomikos/atomikos.md +++ b/分布式事务/atomikos/atomikos.md @@ -110,3 +110,36 @@ public class AtomikosExample { } ``` + +## Spring Boot集成TransactionsEssentials +### TransactionsEssentials 5.0及以上版本 +如果要集成TransactionsEssentials 5.0及以上版本,可以向pom中添加如下依赖: +```xml + + com.atomikos + transactions-spring-boot-starter + +``` + +### TransactionsEssentials 4.x +如果要集成4.x版本,可以添加如下启动器,该启动器为spring官方启动器: +```xml + + org.springframework.boot + spring-boot-starter-jta-atomikos + +``` +### 为atomikos指定日志级别 +可以在properties中添加如下内容来指定atomikos的日志级别 +```properties +logging.level.com.atomikos=DEBUG +``` +### 在spring boot中配置atomikos属性 +在spring boot中配置atomikos属性的示例如下所示: +```yml +spring: + jta: + atomikos: + properties: + max-timeout: 900000 +```