mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
Merge pull request #1029 from zhaoyunxing92/master
[fix]设置在web环境下才注入拦截器
This commit is contained in:
commit
414f8dbf3d
@ -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…
x
Reference in New Issue
Block a user