问题描述:普通的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>