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的依赖就可以解决

posted @ 2017-04-04 00:54  lonecloud  阅读(8482)  评论(0编辑  收藏  举报
我的博客即将同步至 OSCHINA 社区,这是我的 OSCHINA ID:lonecloud,邀请大家一同入驻:https://www.oschina.net/sharing-plan/apply