EL表达式失效,将web.xml配置为4.0
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
version="4.0">
</web-app>
本文解决EL表达式失效的问题,通过将web.xml配置升级到4.0,并确保正确引入jstl依赖,版本为1.2。此配置对于使用EL表达式的Web应用程序至关重要。
514

被折叠的 条评论
为什么被折叠?



