===============================================================================
接下来我们看看具体怎么实现rememberMe功能
<%–
Created by IntelliJ IDEA.
User: dengp
Date: 2019/12/1
Time: 20:40
To change this template use File | Settings | File Templates.
–%>
<%@ page contentType=“text/html;charset=UTF-8” language=“java” %>
<%@ taglib uri=“http://www.springframework.org/security/tags” prefix=“security”%>
登录管理
security:csrfInput/
账号:
密码:
记住我
先测试一下,认证通过后,关掉浏览器,再次打开页面,发现还要认证!为什么没有起作用呢? 这是因为remember me功能使用的过滤器RememberMeAuthenticationFilter默认是不开启的!