Merge pull request #1029 from zhaoyunxing92/master

[fix]设置在web环境下才注入拦截器
pull/1050/head^2
format 5 years ago committed by GitHub
commit 414f8dbf3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -16,12 +16,14 @@
package com.alibaba.cloud.seata.web; package com.alibaba.cloud.seata.web;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry; import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
/** /**
* @author xiaojing * @author xiaojing
*/ */
@ConditionalOnWebApplication
public class SeataHandlerInterceptorConfiguration implements WebMvcConfigurer { public class SeataHandlerInterceptorConfiguration implements WebMvcConfigurer {
@Override @Override

Loading…
Cancel
Save