要分清Tomcat版本,版本不同需要导入的包是不同的,Jakarta.* 还是javax.* ,我的是Tomcat10.0需要导入是jakarta,当时我导入的是javax,一直报错…
jakarta:
https://repo.maven.apache.org/maven2/jakarta/servlet/jsp/jstl/jakarta.servlet.jsp.jstl-api/2.0.0/
https://repo.maven.apache.org/maven2/org/glassfish/web/jakarta.servlet.jsp.jstl/2.0.0/
javax:
http://archive.apache.org/dist/jakarta/taglibs/standard/binaries/