1
zj
2025-08-23 a441a1665bc8dd78b70cc842ad9777ff0ec6daee
ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java
@@ -115,6 +115,10 @@
                    // 静态资源,可匿名访问
                    .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
                    .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()
                    .antMatchers("/im/api/**").permitAll()
                    .antMatchers("/im/user/**").permitAll()
                    .antMatchers("/im/group/**").permitAll()
                    .antMatchers("/system/basic/**").permitAll()
                    // 除上面外的所有请求全部需要鉴权认证
                    .anyRequest().authenticated();
            })