32 lines
919 B
Java
32 lines
919 B
Java
package com.dbnt.faisp.config;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
import org.springframework.context.annotation.Configuration;
|
|
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
|
|
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
|
|
|
@Configuration
|
|
@RequiredArgsConstructor
|
|
public class WebMvcConfig implements WebMvcConfigurer {
|
|
private final FaispInterceptor faispInterceptor;
|
|
@Override
|
|
public void addInterceptors(InterceptorRegistry registry) {
|
|
|
|
registry.addInterceptor(faispInterceptor)
|
|
.addPathPatterns("/**")
|
|
.excludePathPatterns(
|
|
"/",
|
|
"/login",
|
|
"/favicon.ico",
|
|
"/editorFileDisplay",
|
|
"/fileDisplay",
|
|
"/css/**",
|
|
"/img/**",
|
|
"/js/**",
|
|
"/vendor/**",
|
|
"/Crosseditor/**",
|
|
"/CrossUploader/**"
|
|
);
|
|
}
|
|
}
|