This commit is contained in:
2023-06-24 21:23:17 +08:00
parent ee2c4eb3ba
commit 3fd3a09888
12 changed files with 156 additions and 8 deletions

View File

@ -48,7 +48,7 @@ public class SpringSecurityConfig {
registry.antMatchers(url).permitAll();
}
// 文件资源 无需鉴权
registry.antMatchers(BaseConstant.RESOURCE_PREFIX + "/**").permitAll();
registry.antMatchers(BaseConstant.RESOURCE_PATTERN).permitAll();
// 由于使用的是JWT我们这里不需要csrf
httpSecurity.csrf()
.disable()