Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:seata for webflux support #3395

Open
wants to merge 1 commit into
base: 2022.x
Choose a base branch
from
Open

Conversation

yang1320
Copy link

@yang1320 yang1320 commented Jul 18, 2023

Describe what this PR does / why we need it

why we need it:
webflux应用中使得seata能正常生效

Describe what this PR does:
使得全局事务id能正常传播在 webflux应用的Seata的RootContext中

Does this pull request fix one issue?

none;其它人提的:#792

Describe how you did it

添加一个全局过滤器:将该项目的请求头中的全局事务id,设置到seata上下文RootContext中(复用已有类:com.alibaba.cloud.seata.web.SeataHandlerInterceptor的逻辑)
添加一个自动配置:根据web类型,当为REACTIVE时,启用配置类、全局过滤器
装配文件中:新增自动配置类名

Describe how to verify it

https://blog.csdn.net/m0_37128943/article/details/131798195?csdn_share_tail=%7B%22type%22%3A%22blog%22%2C%22rType%22%3A%22article%22%2C%22rId%22%3A%22131798195%22%2C%22source%22%3A%22m0_37128943%22%7D#%E7%BB%93%E6%9E%9C%EF%BC%9A
见 :结果、场景用例

Special notes for reviews

@CLAassistant
Copy link

CLAassistant commented Jul 18, 2023

CLA assistant check
All committers have signed the CLA.

@yang1320 yang1320 changed the title seata for webflux support feat:seata for webflux support Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants