使用el表达式需要引入jstl和standard包
<dependency> <groupId>javax.servlet</groupId> <artifactId>jstl</artifactId> <version>1.2</version> </dependency> <!-- https://mvnrepository.com/artifact/taglibs/standard --> <dependency> <groupId>taglibs</groupId> <artifactId>standard</artifactId> <version>1.1.2</version> </dependency>
如果引入两个包后依然不成功,则需要在jsp页面上面添加
<%@page isELIgnored="false" %>