问题描述
如图所示:
在pom.xml中导入如下JSTL依赖:
<!-- https://mvnrepository.com/artifact/javax.servlet.jsp.jstl/jstl-api -->
<dependency>
<groupId>javax.servlet.jsp.jstl</groupId>
<artifactId>jstl-api</artifactId>
<version>1.2</version>
</dependency>
报了如图所示的500错误:
type Exception report
message Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV
description The server encountered an internal error that prevented it from fulfilling this request.
问题解决
因为 javax.servlet.jsp.jstl 下的 jstl 这种依赖库存在包不全的问题,改成如下配置:
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
问题成功解决!