Maven 项目中 jsp出现 cannot resolve taglib with uri

出现原因

在这里插入图片描述
没有相关的jstl jar包

解决方法

在 pom.xml文件中的 `dependencies`` 中加入如下代码:

 <dependency>
   <groupId>javax.servlet.jsp.jstl</groupId>
   <artifactId>jstl</artifactId>
   <version>1.2</version>
</dependency>

跟新 maven 库,发现已经可以
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/Black_Customer/article/details/107209778
今日推荐