<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
显示用户名
<sec:authentication property="name"/>
依赖的jar
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-taglibs</artifactId>
<version>${spring-security.version}</version>
</dependency>