Skip to content

Commit

Permalink
初始化
Browse files Browse the repository at this point in the history
  • Loading branch information
qixing-ai committed Sep 9, 2024
1 parent 7109bed commit a3bf851
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ public boolean preHandle(HttpServletRequest request, HttpServletResponse respons
public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(jwtInterceptor())
.addPathPatterns("/**")
.excludePathPatterns("/auth/login", "/auth/register","/swagger-ui.html","/swagger-ui/**","/v3/api-docs/**");
.excludePathPatterns("/auth/login", "/auth/register",
"/swagger-ui.html", "/swagger-ui/**",
"/v3/api-docs/**",
"/index.html", "/assets/**");
}

}

0 comments on commit a3bf851

Please sign in to comment.