吴羡
2 天以前 e5d1fb3d5ce9468b92e79825bbcb38f05ea73aff
ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java
@@ -102,7 +102,7 @@
                // 对于登录login 注册register 允许匿名访问
                requests.requestMatchers("/login", "/register").permitAll()
                    // 静态资源,可匿名访问
                    .requestMatchers(HttpMethod.GET, "/", "/*.html", "/**.html", "/**.css", "/**.js", "/profile/**").permitAll()
                    .requestMatchers(HttpMethod.GET, "/", "/*.html", "/**.html", "/**.css", "/**.js", "/profile/**", "/img/**", "/word/**").permitAll()
                    .requestMatchers("/swagger-ui.html", "/v3/api-docs/**", "/swagger-ui/**", "/druid/**").permitAll()
                    // 除上面外的所有请求全部需要鉴权认证
                    .anyRequest().authenticated();