This is an automated email from the ASF dual-hosted git repository. jianbin pushed a commit to branch docusaurus in repository https://gitbox.apache.org/repos/asf/incubator-seata-website.git
The following commit(s) were added to refs/heads/docusaurus by this push: new f75c0e007f optimize the description of faq#23 (#876) f75c0e007f is described below commit f75c0e007fd35c76997520ad8c83f10bba39d009 Author: funkye <jian...@apache.org> AuthorDate: Tue Jul 30 23:10:09 2024 +0800 optimize the description of faq#23 (#876) --- i18n/en/docusaurus-plugin-content-docs/current/overview/faq.md | 9 +++++---- .../docusaurus-plugin-content-docs/current/overview/faq.md | 10 ++++++---- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/i18n/en/docusaurus-plugin-content-docs/current/overview/faq.md b/i18n/en/docusaurus-plugin-content-docs/current/overview/faq.md index 52f8d028f8..bb02947a52 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/overview/faq.md +++ b/i18n/en/docusaurus-plugin-content-docs/current/overview/faq.md @@ -76,7 +76,7 @@ description: Seata FAQ. <a href="#23" target="_self">23.Spring boot 1.5.x appear the Jackson related NoClassDefFoundException?</a> <br/> -<a href="#24" target="_self">24.SpringCloud xid cannot transmit?</a> +<a href="#24" target="_self">24.SpringCloud/HTTP xid cannot transmit?</a> <br/> <a href="#25" target="_self">25.undo_log cannot be deleted after using the mybatis plus dynamic data source component?</a> @@ -400,12 +400,13 @@ It is currently found that too low a version of Jackson that was originally intr --- -<h3 id='24'>Q: 24.SpringCloud xid cannot transmit?</h3> +<h3 id='24'>Q: 24.SpringCloud/HTTP xid cannot transmit?</h3> **A:** -1. First make sure you introduce the `spring-cloud-alibaba-seata` dependency. -2. If XID cannot be delivered, please confirm whether you have implemented `WebMvcConfigurer`. If yes, please refer to the method of `com.alibaba.cloud.seata.web.seatahandlerinterceptorconfiguration#addinterceptors`. Add `SeataHandlerInterceptor` to your interception link +1. If it is the springcloud application, make sure you have introduced `spring-cloud-starter-alibaba-seata` as a dependency. +2. If the xid hasn't been accepted yet, please confirm whether you have implemented the `WebMvcConfigurer`; if you have, please add `org.apache.seata.integration.http.TransactionPropagationInterceptor.SeataHandlerInterceptor` to your interception chain. You can refer to how `org.apache.seata.integration.http.SeataWebMvcConfigurer` is implemented. +3. If it isn't a SpringCloud application, you can use `org.apache.seata.integration.http.DefaultHttpExecutor#getInstance `to invoke http when necessary, or refer to its implementation and encapsulate the httpclient to transfer xid by yourself. --- diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/current/overview/faq.md b/i18n/zh-cn/docusaurus-plugin-content-docs/current/overview/faq.md index 4d7f51462a..3fb27fcb95 100644 --- a/i18n/zh-cn/docusaurus-plugin-content-docs/current/overview/faq.md +++ b/i18n/zh-cn/docusaurus-plugin-content-docs/current/overview/faq.md @@ -76,7 +76,7 @@ description: Seata 常见问题。 <a href="#23" target="_self">23. Spring boot 1.5.x 出现 jackson 相关 NoClassDefFoundException ?</a> <br/> -<a href="#24" target="_self">24. SpringCloud xid 无法传递 ?</a> +<a href="#24" target="_self">24. SpringCloud/http调用 xid无法传递 ?</a> <br/> <a href="#25" target="_self">25. 使用动态数据源后的常见问题 ?</a> @@ -419,13 +419,15 @@ Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.faster --- -<h3 id='24'>Q: 24. SpringCloud xid无法传递 ?</h3> +<h3 id='24'>Q: 24. SpringCloud/http调用 xid无法传递 ?</h3> **A:** -1.首先确保你引入了`spring-cloud-starter-alibaba-seata`的依赖. +1.如果是springcloud应用首先确保你引入了`spring-cloud-starter-alibaba-seata`的依赖. -2.如果 xid 还无法传递,请确认你是否实现了 WebMvcConfigurer,如果是,请参考 com.alibaba.cloud.seata.web.SeataHandlerInterceptorConfiguration#addInterceptors 的方法.把 SeataHandlerInterceptor 加入到你的拦截链路中. +2.如果 xid 还无法被接受到,请确认你是否实现了 WebMvcConfigurer,如果是,请将org.apache.seata.integration.http.TransactionPropagationInterceptor.把 SeataHandlerInterceptor 加入到你的拦截链路中. 可以参考org.apache.seata.integration.http.SeataWebMvcConfigurer的实现方式进行. + +3.如果是非SpringCloud应用,需要http调用时可以使用org.apache.seata.integration.http.DefaultHttpExecutor#getInstance 进行http调用,或者参考其实现,自行封装httpclient进行传递xid. --- --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org For additional commands, e-mail: notifications-h...@seata.apache.org