spring security如何添加無需鑑權的接口?

1、在項目中找到spring security的配置文件 2、修改配置文件 找到configure()方法,添加不需要鑑權的接口請求: .antMatchers("/demo/**").anonymous() package com.ryi.rpcs.framework.config; import com.ryi.rpcs.framework.security.filter.JwtAuth
相關文章
相關標籤/搜索