maven使用jstl表达式和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解决


 

 

maven 中使用jstl表达式中出现如上错误。原因:

1.由于在maven中的web项目没有自动依赖jstl的jar

未在pom文件中添加jstl相关的jar

 1       <!--jstl表达式-->
 2       <dependency>
 3           <groupId>jstl</groupId>
 4           <artifactId>jstl</artifactId>
 5           <version>1.2</version>
 6       </dependency>
 7       <dependency>
 8           <groupId>taglibs</groupId>
 9           <artifactId>standard</artifactId>
10           <version>1.2</version>
11       </dependency>

 

在这里添加上面两个jar的依赖就可以解决


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM