初始化项目
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:
Lee 2026-06-08 16:45:55 +08:00
parent 7843a3e3a0
commit dd8d7ce6cd
2 changed files with 3 additions and 2 deletions

View File

@ -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");
}
}

View File

@ -21,7 +21,8 @@ public class AuthInterceptor implements HandlerInterceptor {
"/login",
"/css/",
"/js/",
"/error"
"/error",
"hello"
};
@Override