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