import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
@Configuration //等同于spring的XML配置文件
public class WebSecurityConfig
Springboot 拦截器(简单版,使用session存储)
最新推荐文章于 2024-09-13 20:59:37 发布
这篇博客介绍了如何在Springboot中使用拦截器来处理用户的登录、查看和退出操作,通过Session存储用户状态。
最低0.47元/天 解锁文章
&spm=1001.2101.3001.5002&articleId=103475317&d=1&t=3&u=3a3618a3519f4d8f9b803a0f66b4e33f)
1851

被折叠的 条评论
为什么被折叠?



