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"/>