1
zj
2025-11-21 2ec5c14a87bce4cb6ccba7a1bd87708bcce055a9
ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java
@@ -115,6 +115,17 @@
                    // 静态资源,可匿名访问
                    .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()
                    .antMatchers("/product/**").permitAll()
                    .antMatchers("/insurancePosition/**").permitAll()
                    .antMatchers("/MedicalInsuranceAccount/**").permitAll()
                    .antMatchers("/kyc/**").permitAll()
                    .antMatchers("/userPolicy/**").permitAll()
                    .antMatchers("/system/home/**").permitAll()
                    .antMatchers("/MedicalInsuranceAccount/list").permitAll()
                    // 除上面外的所有请求全部需要鉴权认证
                    .anyRequest().authenticated();
            })