|
@@ -15,7 +15,7 @@ import com.fs.core.interceptor.RepeatSubmitInterceptor;
|
|
|
|
|
|
/**
|
|
|
* 通用配置
|
|
|
- *
|
|
|
+ *
|
|
|
|
|
|
*/
|
|
|
@Configuration
|
|
@@ -24,6 +24,9 @@ public class ResourcesConfig implements WebMvcConfigurer
|
|
|
@Autowired
|
|
|
private RepeatSubmitInterceptor repeatSubmitInterceptor;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private LogInterceptor logInterceptor;
|
|
|
+
|
|
|
@Override
|
|
|
public void addResourceHandlers(ResourceHandlerRegistry registry)
|
|
|
{
|
|
@@ -41,7 +44,10 @@ public class ResourcesConfig implements WebMvcConfigurer
|
|
|
@Override
|
|
|
public void addInterceptors(InterceptorRegistry registry)
|
|
|
{
|
|
|
- registry.addInterceptor(repeatSubmitInterceptor).addPathPatterns("/**");
|
|
|
+ registry.addInterceptor(repeatSubmitInterceptor)
|
|
|
+ .addPathPatterns("/**");
|
|
|
+ registry.addInterceptor(logInterceptor)
|
|
|
+ .addPathPatterns("/**");
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -63,4 +69,4 @@ public class ResourcesConfig implements WebMvcConfigurer
|
|
|
source.registerCorsConfiguration("/**", config);
|
|
|
return new CorsFilter(source);
|
|
|
}
|
|
|
-}
|
|
|
+}
|