|
@@ -3,6 +3,7 @@ package com.zy.bms.config;
|
|
|
import com.zy.bms.common.interceptor.AuthInterceptor;
|
|
|
import com.zy.bms.common.interceptor.VerifyInterceptor;
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
+import org.springframework.context.annotation.Profile;
|
|
|
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
|
|
|
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
|
|
|
|
@@ -16,6 +17,7 @@ import java.util.List;
|
|
|
* @author chenyi
|
|
|
* Create on 2019/10/10
|
|
|
*/
|
|
|
+@Profile("prod")
|
|
|
@Configuration
|
|
|
public class InterceptorConfig implements WebMvcConfigurer {
|
|
|
/**
|