springboot 拦截器HandlerInterceptor使用
在项目中,登录信息token解析以及请求头信息等一系列操作,可以通过HandlerInterceptor预处理。
import com.company.beauty.common.jwt.Headers;
import com.company.beauty.common.jwt.UserUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Component;
import org.
原创
2021-04-27 11:04:28 ·
560 阅读 ·
0 评论