关于jstl和web.xml之间的版本问题

jstl的版本1.2对应web.xml3.1版本

jstl的版本1.1对应web.xml2.3版本

(IDEA中默认创建的是2.3的web.xml,最好换成3.1版本的)

web.xml模板:

<?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_3_1.xsd"
         version="3.1">
 
</web-app>
原文地址:https://www.cnblogs.com/rgever/p/10053061.html