问题描述:普通的Spring Web项目正常启动,但是在访问某些JSP页面时,页面会报错出现:org.apache.jasper.JasperException: The absolute uri: [http://java.sun.com/jsp/jstl/core] cannot be resolved in either web.xml or the jar files deployed with this application
解决方法:
我们查看一些JSP页面会发现其引入了jstl标签,但是由于没有引入其对应的JSTL依赖包,当前行会变成红色

因此最终解决方法为在pom.xml中引入jstl依赖
<!--引入jstl 1.2依赖-->
<dependency>
<groupId>jstl</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
解决SpringWeb项目JSP页面JSTL标签无法解析的问题
当SpringWeb项目在访问某些JSP页面时遇到`The absolute uri: [http://java.sun.com/jsp/jstl/core] cannot be resolved`错误,通常是由于缺少JSTL依赖导致。解决方法是在项目的pom.xml文件中添加jstl的依赖,例如引入jstl 1.2版本,确保JSP页面能够正确解析jstl标签。
693





