mod
This commit is contained in:
@@ -22,9 +22,11 @@ import org.springframework.stereotype.Component;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 用户登录鉴权和获取用户授权
|
||||
* @author chenhaodong
|
||||
* @Description 描述:用户登录鉴权和获取用户授权
|
||||
* @Author A贾宇婷034244310
|
||||
* @Date 20260615
|
||||
*/
|
||||
@Component
|
||||
@Slf4j
|
||||
|
||||
@@ -12,9 +12,11 @@ import javax.servlet.ServletResponse;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
|
||||
/**
|
||||
* 鉴权登录拦截器
|
||||
* @author chenhaodong
|
||||
* @Description 描述:鉴权登录拦截器
|
||||
* @Author A贾宇婷034244310
|
||||
* @Date 20260615
|
||||
*/
|
||||
@Slf4j
|
||||
public class JwtFilter extends BasicHttpAuthenticationFilter {
|
||||
|
||||
@@ -4,7 +4,9 @@ import lombok.Data;
|
||||
import org.apache.shiro.authc.AuthenticationToken;
|
||||
|
||||
/**
|
||||
* @author chenhaodong
|
||||
* @Description 描述:
|
||||
* @Author A贾宇婷034244310
|
||||
* @Date 20260615
|
||||
*/
|
||||
@Data
|
||||
public class JwtToken implements AuthenticationToken {
|
||||
|
||||
@@ -11,8 +11,9 @@ import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* JWT工具类
|
||||
* @author chenhaodong
|
||||
* @Description 描述:JWT工具类
|
||||
* @Author A贾宇婷034244310
|
||||
* @Date 20260615
|
||||
*/
|
||||
public class JwtUtils {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user