浏览代码

no message

ly 1 年之前
父节点
当前提交
8c51aac878
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/main/java/cn/ezhizao/framework/config/SecurityConfig.java

+ 1 - 0
src/main/java/cn/ezhizao/framework/config/SecurityConfig.java

@@ -116,6 +116,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
                 // 静态资源,可匿名访问
                 .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
                 .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()
+                .antMatchers("/rpc/**").permitAll()
                 .antMatchers("/upload/**").permitAll()
                 // 除上面外的所有请求全部需要鉴权认证
                 .anyRequest().authenticated()