Ordinary Spring Web projects start normally, and when accessing certain JSP pages, the page will report an error http://java.sun.com/jsp/jstl/core

Problem description: Normal Spring Web projects start normally, but when accessing some JSP pages, the page will report an error: 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 

Solution:

  We look at some JSP pages and find that they have introduced jstl tags, but because they have not introduced their corresponding JSTL dependency packages, the current line will turn red

  Therefore, the final solution is to introduce jstl dependency in pom.xml

<!--引入jstl 1.2依赖-->
<dependency>
    <groupId>jstl</groupId>
    <artifactId>jstl</artifactId>
    <version>1.2</version>
</dependency>

 

Guess you like

Origin blog.csdn.net/y_bccl27/article/details/109711382