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,7 +128,7 @@ public class YudaoWebSecurityConfigurerAdapter {
128 // ①:全局共享规则 128 // ①:全局共享规则
129 .authorizeHttpRequests(c -> c 129 .authorizeHttpRequests(c -> c
130 // 1.1 静态资源,可匿名访问 130 // 1.1 静态资源,可匿名访问
131 - .requestMatchers(HttpMethod.GET, "/*.html", "/*.html", "/*.css", "/*.js").permitAll() 131 + .requestMatchers(HttpMethod.GET, "/*.html", "/*.css", "/*.js").permitAll()
132 // 1.2 设置 @PermitAll 无需认证 132 // 1.2 设置 @PermitAll 无需认证
133 .requestMatchers(HttpMethod.GET, permitAllUrls.get(HttpMethod.GET).toArray(new String[0])).permitAll() 133 .requestMatchers(HttpMethod.GET, permitAllUrls.get(HttpMethod.GET).toArray(new String[0])).permitAll()
134 .requestMatchers(HttpMethod.POST, permitAllUrls.get(HttpMethod.POST).toArray(new String[0])).permitAll() 134 .requestMatchers(HttpMethod.POST, permitAllUrls.get(HttpMethod.POST).toArray(new String[0])).permitAll()