一、放置附件webdefault.xml到项目根目录。
二、在pom.xml文件中配置:
二、在pom.xml文件中配置:
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.1.10</version>
<configuration>
<!-- 去除调试时javascript,css之类的缓存锁定 -->
<webDefaultXml>${basedir}/webdefault.xml</webDefaultXml>
</configuration>
</plugin>