Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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