!234 【轻量级 PR】使用 @SaIgnore 替换 @Anonymous

Merge pull request !234 from MichelleChung/dev
This commit is contained in:
MichelleChung
2022-09-19 12:30:46 +00:00
committed by 疯狂的狮子Li
parent 513bda53cd
commit 8af85e8066
6 changed files with 22 additions and 11 deletions

View File

@ -1,5 +1,7 @@
package com.ruoyi.framework.config.properties;
import cn.dev33.satoken.annotation.SaIgnore;
import cn.dev33.satoken.interceptor.SaInterceptor;
import cn.hutool.core.util.ReUtil;
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.utils.spring.SpringUtils;
@ -13,6 +15,8 @@ import org.springframework.web.servlet.mvc.method.RequestMappingInfo;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;
import org.springframework.web.util.pattern.PathPattern;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.*;
import java.util.regex.Pattern;
@ -20,7 +24,10 @@ import java.util.regex.Pattern;
* 设置注解允许匿名访问的url
*
* @author Lion Li
* @deprecated 将在后续版本使用Sa-Token注解 {@link SaIgnore} 代替,
* 底层过滤方法详见 {@link SaInterceptor#preHandle(HttpServletRequest, HttpServletResponse, Object)}
*/
@Deprecated
@Lazy
@Component
public class ExcludeUrlProperties implements InitializingBean {