|
|
|
@ -17,8 +17,10 @@ public class WebMvcConfig extends WebMvcConfigurationSupport {
|
|
|
|
|
* @param registry
|
|
|
|
|
*/
|
|
|
|
|
protected void addInterceptors(InterceptorRegistry registry) {
|
|
|
|
|
registry.addInterceptor(jwtInterceptor).
|
|
|
|
|
addPathPatterns("/**");
|
|
|
|
|
String[] excludePaths = {"/doc.html/**","/swagger-resources/**","/webjars/**","/v2/**"};
|
|
|
|
|
registry.addInterceptor(jwtInterceptor)
|
|
|
|
|
.excludePathPatterns(excludePaths)
|
|
|
|
|
.addPathPatterns("/**");
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
protected void addResourceHandlers(ResourceHandlerRegistry registry) {
|
|
|
|
|