1.在jsp页面引入标签
- <%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
2.使用下方表达式获取用户名
- <sec:authentication property="name"/>
- <%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
- <sec:authentication property="name"/>