Commit a985ba923efffe750f757c46ee8e93ea7dbe309f

Authored by YunaiV
1 parent 70538320

【功能优化】全局:清理掉多余重复的 "/*.html"

yudao-framework/yudao-spring-boot-starter-security/src/main/java/cn/iocoder/yudao/framework/security/config/YudaoWebSecurityConfigurerAdapter.java
... ... @@ -128,7 +128,7 @@ public class YudaoWebSecurityConfigurerAdapter {
128 128 // ①:全局共享规则
129 129 .authorizeHttpRequests(c -> c
130 130 // 1.1 静态资源,可匿名访问
131   - .requestMatchers(HttpMethod.GET, "/*.html", "/*.html", "/*.css", "/*.js").permitAll()
  131 + .requestMatchers(HttpMethod.GET, "/*.html", "/*.css", "/*.js").permitAll()
132 132 // 1.2 设置 @PermitAll 无需认证
133 133 .requestMatchers(HttpMethod.GET, permitAllUrls.get(HttpMethod.GET).toArray(new String[0])).permitAll()
134 134 .requestMatchers(HttpMethod.POST, permitAllUrls.get(HttpMethod.POST).toArray(new String[0])).permitAll()
... ...