首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Eclipse开发 >

Maven+Eclipse 中施用tomcat

2012-06-28 
Maven+Eclipse 中使用tomcatbuildplugins!-- --plugingroupIdorg.codehaus.mojo/groupIdarti

Maven+Eclipse 中使用tomcat

   <build>   <plugins><!-- --><plugin><groupId>org.codehaus.mojo</groupId><artifactId>tomcat-maven-plugin</artifactId><version>1.0-beta-1</version><configuration><url>http://localhost/manager</url></configuration></plugin></plugins>  </build>

?

? 如果报错 :java.lang.ClassCastException:?common.filter.CacheFilter?cannot?be?cast?to?javax.servlet.Servlet? 请添加如下依赖。

?

 <dependency>               <groupId>javax.servlet</groupId>               <artifactId>servlet-api</artifactId>               <version>2.4</version>               <scope>provided</scope>     </dependency>

?

?

?

热点排行