Skip to content

Commit 5d1d4b4

Browse files
authored
feat: support webflux for seata (#4090)
1 parent 47f1d9b commit 5d1d4b4

File tree

23 files changed

+451
-178
lines changed

23 files changed

+451
-178
lines changed

.editorconfig

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
root = true
2+
3+
[*.java]
4+
indent_style = tab
5+
indent_size = 4
6+
continuation_indent_size = 8
7+
8+
[*.groovy]
9+
indent_style = tab
10+
indent_size = 4
11+
continuation_indent_size = 8
12+
13+
[*.xml]
14+
indent_style = tab
15+
indent_size = 4
16+
continuation_indent_size = 8
17+
18+
[*.yml]
19+
indent_style = space
20+
indent_size = 2
21+
22+
[*.yaml]
23+
indent_style = space
24+
indent_size = 2

spring-cloud-alibaba-examples/integrated-example/integrated-account/src/main/java/com/alibaba/cloud/integration/account/service/impl/AccountServiceImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2013-2023 the original author or authors.
2+
* Copyright 2013-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -22,7 +22,7 @@
2222
import com.alibaba.cloud.integration.account.service.AccountService;
2323
import com.alibaba.cloud.integration.common.BusinessException;
2424
import com.alibaba.cloud.integration.common.Result;
25-
import io.seata.core.context.RootContext;
25+
import org.apache.seata.core.context.RootContext;
2626
import org.slf4j.Logger;
2727
import org.slf4j.LoggerFactory;
2828

spring-cloud-alibaba-examples/integrated-example/integrated-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/OrderServiceImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2013-2023 the original author or authors.
2+
* Copyright 2013-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -27,8 +27,8 @@
2727
import com.alibaba.cloud.integration.order.feign.dto.StorageDTO;
2828
import com.alibaba.cloud.integration.order.mapper.OrderMapper;
2929
import com.alibaba.cloud.integration.order.service.OrderService;
30-
import io.seata.core.context.RootContext;
31-
import io.seata.spring.annotation.GlobalTransactional;
30+
import org.apache.seata.core.context.RootContext;
31+
import org.apache.seata.spring.annotation.GlobalTransactional;
3232
import org.slf4j.Logger;
3333
import org.slf4j.LoggerFactory;
3434

spring-cloud-alibaba-examples/integrated-example/integrated-storage/src/main/java/com/alibaba/cloud/integration/storage/service/impl/StorageServiceImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2013-2023 the original author or authors.
2+
* Copyright 2013-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -22,7 +22,7 @@
2222
import com.alibaba.cloud.integration.common.Result;
2323
import com.alibaba.cloud.integration.storage.mapper.StorageMapper;
2424
import com.alibaba.cloud.integration.storage.service.StorageService;
25-
import io.seata.core.context.RootContext;
25+
import org.apache.seata.core.context.RootContext;
2626
import org.slf4j.Logger;
2727
import org.slf4j.LoggerFactory;
2828

spring-cloud-alibaba-examples/seata-example/account-service/src/main/java/com/alibaba/cloud/examples/AccountController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2013-2023 the original author or authors.
2+
* Copyright 2013-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -18,7 +18,7 @@
1818

1919
import java.util.Random;
2020

21-
import io.seata.core.context.RootContext;
21+
import org.apache.seata.core.context.RootContext;
2222
import org.slf4j.Logger;
2323
import org.slf4j.LoggerFactory;
2424

spring-cloud-alibaba-examples/seata-example/business-service/src/main/java/com/alibaba/cloud/examples/HomeController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2013-2023 the original author or authors.
2+
* Copyright 2013-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -18,7 +18,7 @@
1818

1919
import com.alibaba.cloud.examples.BusinessApplication.OrderService;
2020
import com.alibaba.cloud.examples.BusinessApplication.StorageService;
21-
import io.seata.spring.annotation.GlobalTransactional;
21+
import org.apache.seata.spring.annotation.GlobalTransactional;
2222
import org.slf4j.Logger;
2323
import org.slf4j.LoggerFactory;
2424

spring-cloud-alibaba-examples/seata-example/order-service/src/main/java/com/alibaba/cloud/examples/OrderController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2013-2023 the original author or authors.
2+
* Copyright 2013-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@
2121
import java.sql.SQLException;
2222
import java.util.Random;
2323

24-
import io.seata.core.context.RootContext;
24+
import org.apache.seata.core.context.RootContext;
2525
import org.slf4j.Logger;
2626
import org.slf4j.LoggerFactory;
2727

spring-cloud-alibaba-examples/seata-example/storage-service/src/main/java/com/alibaba/cloud/examples/controller/StorageController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2013-2023 the original author or authors.
2+
* Copyright 2013-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,7 +16,7 @@
1616

1717
package com.alibaba.cloud.examples.controller;
1818

19-
import io.seata.core.context.RootContext;
19+
import org.apache.seata.core.context.RootContext;
2020
import org.slf4j.Logger;
2121
import org.slf4j.LoggerFactory;
2222

spring-cloud-alibaba-starters/spring-cloud-starter-alibaba-seata/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@
3939
<optional>true</optional>
4040
</dependency>
4141

42+
<dependency>
43+
<groupId>org.springframework.boot</groupId>
44+
<artifactId>spring-boot-starter-webflux</artifactId>
45+
<optional>true</optional>
46+
</dependency>
47+
4248
<dependency>
4349
<groupId>org.apache.seata</groupId>
4450
<artifactId>seata-spring-boot-starter</artifactId>

spring-cloud-alibaba-starters/spring-cloud-starter-alibaba-seata/src/main/java/com/alibaba/cloud/seata/feign/SeataFeignRequestInterceptor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2013-2023 the original author or authors.
2+
* Copyright 2013-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -18,7 +18,7 @@
1818

1919
import feign.RequestInterceptor;
2020
import feign.RequestTemplate;
21-
import io.seata.core.context.RootContext;
21+
import org.apache.seata.core.context.RootContext;
2222

2323
import org.springframework.util.StringUtils;
2424

0 commit comments

Comments
 (0)