005-2021 NoClassDefFoundError: javax/servlet/jsp/jstl/core/ConditionalTagSupport

maven使用JSTL标签出现错误,截图如下 :

 

 

错误产生原因 : 缺少jstl-api和jstl-impl的jar包依赖

解决方案 : maven仓库直接搜索 jstl-api和jstl-impl查找依赖,并导入maven的pom.xml文件

完整的JSTL标签使用依赖坐标如下 : 

    <!-- https://mvnrepository.com/artifact/javax.servlet.jsp.jstl/jstl -->
    <dependency>
      <groupId>javax.servlet.jsp.jstl</groupId>
      <artifactId>jstl</artifactId>
      <version>1.2</version>
    </dependency>
    <!-- https://mvnrepository.com/artifact/taglibs/standard -->
    <dependency>
      <groupId>taglibs</groupId>
      <artifactId>standard</artifactId>
      <version>1.1.2</version>
    </dependency>
    <!-- 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>
    <!-- https://mvnrepository.com/artifact/org.glassfish.web/jstl-impl -->
    <dependency>
      <groupId>org.glassfish.web</groupId>
      <artifactId>jstl-impl</artifactId>
      <version>1.2</version>
      <scope>runtime</scope>
    </dependency>

 

 

posted @ 2021-01-28 15:01  -超级菜鸟-  阅读(320)  评论(0编辑  收藏  举报