在idea上使用springboot加web项目时,idea本身是自带tomcat的。
启动项目后,报错。错误提示是:
org.apache.jasper.JasperException: This absolute uri http://java.sun.com/jsp/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application
web项目出现如上问题,据查是版本问题:
JSTL 1.0 的声明是:
< %@ taglib prefix="c" uri="http://java.sun.com/jstl/core " %>
JSTL1.1以后 的声明是:
< %@ taglib prefix="c" uri=http://java.sun.com/jsp/jstl/core %>
此时需要的是去maven导入或更新依赖
<dependency>
<groupId>jstl</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
因为这是我在使用过程中所遇到的问题,并且只试用于springboot上的web项目。所以可能不是适用于所有人。