springmvc jstl

springmvc运用maven的jetty插件运行成功,部署在tomcat6报错:ClassNotFoundException: javax.servlet.jsp.jstl.core.Config

 

解决办法:maven添加依赖

 1 <dependency>
 2             <groupId>javax.servlet.jsp.jstl</groupId>
 3             <artifactId>jstl-api</artifactId>
 4             <version>1.2</version>
 5             <exclusions>
 6                 <exclusion>
 7                     <groupId>javax.servlet</groupId>
 8                     <artifactId>servlet-api</artifactId>
 9                 </exclusion>
10                 <exclusion>
11                     <groupId>javax.servlet.jsp</groupId>
12                     <artifactId>jsp-api</artifactId>
13                 </exclusion>
14             </exclusions>
15         </dependency>

 

posted @ 2016-01-11 17:32  xiaoha  阅读(296)  评论(0编辑  收藏  举报