1
0
mirror of https://gitee.com/mirrors/Spring-Cloud-Alibaba.git synced 2021-06-26 13:25:11 +08:00

sync & commit in greenwich

This commit is contained in:
fangjian0423
2019-11-06 17:10:53 +08:00
parent 695b374902
commit f31b48a01f
2 changed files with 9 additions and 3 deletions

View File

@@ -23,6 +23,7 @@ import io.seata.core.context.RootContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.util.StringUtils;
import org.springframework.web.servlet.HandlerInterceptor;
@@ -35,6 +36,7 @@ import org.springframework.web.servlet.HandlerInterceptor;
* And clean up Seata information after servlet method invocation in
* {@link org.springframework.web.servlet.HandlerInterceptor#afterCompletion(HttpServletRequest, HttpServletResponse, Object, Exception)}
*/
@ConditionalOnWebApplication
public class SeataHandlerInterceptor implements HandlerInterceptor {
private static final Logger log = LoggerFactory