提交 f327565c 编写于 作者: 武汉红喜's avatar 武汉红喜

interceptor

上级 5d3cc87d
......@@ -25,7 +25,7 @@ public class AppConfig {
private UserConfig userConfig;
@ConditionalOnProperty(value = "api.auth.enable")
@Profile({"test", "prod"})
@Profile({"dev", "prod"})
@Configuration
public static class WebMvcConf extends WebMvcConfigurerAdapter {
......@@ -33,7 +33,7 @@ public class AppConfig {
public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(apiAuthInterceptor())
.addPathPatterns("/api/mars/**")
.addPathPatterns("/api/toutiao/**")
.addPathPatterns("/do")
.pathMatcher(new AntPathMatcher());
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册