spring security如何添加无需鉴权的接口?

1、在项目中找到spring security的配置文件 2、修改配置文件 找到configure()方法,添加不需要鉴权的接口请求: .antMatchers("/demo/**").anonymous() package com.ryi.rpcs.framework.config; import com.ryi.rpcs.framework.security.filter.JwtAuth
相关文章
相关标签/搜索