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>
?
?
?