sinake
4 天以前 da4de63b4c1aa2017c4893b7c336de096c3c8611
ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java
@@ -101,7 +101,7 @@
                // 过滤请求
                .authorizeRequests()
                // 对于登录login 注册register 验证码captchaImage 允许匿名访问
                .antMatchers("/login", "/openidlogin", "/register", "/captchaImage", "/getToken","/getCode").anonymous()
                .antMatchers("/login", "/openidlogin", "/register", "/captchaImage", "/getToken","/GiLink/getCode").anonymous()
                .antMatchers(
                        HttpMethod.GET,
                        "/",
@@ -114,7 +114,7 @@
                .antMatchers("/swagger-ui.html").permitAll()
                .antMatchers("/swagger-resources/**").permitAll()
                .antMatchers("/webjars/**").permitAll()
                .antMatchers("/*/api-docs").permitAll()
               // .antMatchers("/*/api-docs").permitAll()
//                .antMatchers("/druid/**").anonymous()
                // 除上面外的所有请求全部需要鉴权认证
                .anyRequest().authenticated()