Commit 6a4fe88e by fanjiaxin

放开权限,联调

parent a5ff3e61
Pipeline #71471 passed with stages
in 1 minute 10 seconds
......@@ -19,28 +19,19 @@ import java.util.Collections;
public class WebConfig implements WebMvcConfigurer {
private final AuthInterceptor authInterceptor;
private static final String[] EXCLUDE_URLS = {"/open/**",
"/test/**", "/i/health", "/user/login",
"/product/page/list"};
// private static final String[] EXCLUDE_URLS = {"/open/**",
// "/test/**", "/i/health", "/user/login",
// "/product/page/list"};
private static final String[] EXCLUDE_URLS = {"/**"};
@Override
public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(authInterceptor)
.addPathPatterns(getIncludePathPatterns())
.excludePathPatterns(getExcludePathPatterns());
}
/**
* 需要用户和服务认证判断的路径
*/
private ArrayList<String> getIncludePathPatterns() {
ArrayList<String> list = new ArrayList<>();
String[] urls = {"/**"};
Collections.addAll(list, urls);
return list;
}
/**
* 白名单
*/
private ArrayList<String> getExcludePathPatterns() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment