|
@@ -3,7 +3,6 @@ package com.zy.bms.config;
|
|
import com.zy.bms.config.interceptor.OperateAuthInterceptor;
|
|
import com.zy.bms.config.interceptor.OperateAuthInterceptor;
|
|
import com.zy.bms.config.interceptor.UbiAppAuthInterceptor;
|
|
import com.zy.bms.config.interceptor.UbiAppAuthInterceptor;
|
|
import org.springframework.context.annotation.Configuration;
|
|
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.InterceptorRegistry;
|
|
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
|
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
|
|
|
|
|
@@ -17,7 +16,7 @@ import java.util.List;
|
|
* @author chenyi
|
|
* @author chenyi
|
|
* Create on 2019/10/10
|
|
* Create on 2019/10/10
|
|
*/
|
|
*/
|
|
-@Profile("prod")
|
|
|
|
|
|
+//@Profile("prod")
|
|
@Configuration
|
|
@Configuration
|
|
public class InterceptorCfg implements WebMvcConfigurer {
|
|
public class InterceptorCfg implements WebMvcConfigurer {
|
|
/**
|
|
/**
|
|
@@ -31,7 +30,8 @@ public class InterceptorCfg implements WebMvcConfigurer {
|
|
private static List<String> whiteList = new ArrayList<>();
|
|
private static List<String> whiteList = new ArrayList<>();
|
|
|
|
|
|
static {
|
|
static {
|
|
- whiteList.add("/bms/api/pc/admin/login.do");
|
|
|
|
|
|
+ whiteList.add("/bms/api/operate/admin/login.do");
|
|
|
|
+ whiteList.add("/bms/api/common/author.do");
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|