初始化项目
Some checks failed
Java Maven 3.9.9 & JDK 26 CI/CD Pipeline / build-and-deploy (push) Failing after 1m1s
Some checks failed
Java Maven 3.9.9 & JDK 26 CI/CD Pipeline / build-and-deploy (push) Failing after 1m1s
This commit is contained in:
parent
7843a3e3a0
commit
dd8d7ce6cd
@ -15,6 +15,6 @@ public class MvcConfig implements WebMvcConfigurer {
|
||||
public void addInterceptors(InterceptorRegistry registry) {
|
||||
registry.addInterceptor(new AuthInterceptor())
|
||||
.addPathPatterns("/**")
|
||||
.excludePathPatterns("/login", "/css/**", "/js/**", "/error", "/favicon.ico");
|
||||
.excludePathPatterns("/login", "/css/**", "/js/**", "/error", "/favicon.ico","/hello");
|
||||
}
|
||||
}
|
||||
|
||||
@ -21,7 +21,8 @@ public class AuthInterceptor implements HandlerInterceptor {
|
||||
"/login",
|
||||
"/css/",
|
||||
"/js/",
|
||||
"/error"
|
||||
"/error",
|
||||
"hello"
|
||||
};
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
Reference in New Issue
Block a user