maven 部署 404

maven项目部署后,总是报404。后来发现是pom配置错误导致的

pom
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>8.1.10.v20130312</version>
<configuration>
<webAppConfig>
<contextPath>/${project.artifactId}</contextPath>
</webAppConfig>
</configuration>
</plugin>

 其中的<contextPath>/${project.artifactId}</contextPath>中,少了一个“/”,导致错误。

粗心大意,调了一天,引以为戒。

猜你喜欢

转载自bishion.iteye.com/blog/2193741