maven發(fā)布web aap報錯
Error 404 - Not Found. No context on this server matched or handled this request. Contexts known to this server are: /webdemo ---> org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@117f633{/webdemo,E:\Code\Java\webdemo\src\main\webapp} 這個是為什么?
2016-01-10
是jetty插件問題,修改你的pom文件,把jetty-maven-plugin換成這個就OK了
<groupId>org.eclipse.jetty</groupId>
? <artifactId>jetty-maven-plugin</artifactId>
? <version>9.3.7.RC0</version>
2016-01-10
你先試試tomcat的是不是好的
2016-01-10
我也遇到了這個問題,好像不是代碼路徑的問題吧,應該和Jetty有關,我用tomcat就能運行正確
2016-01-10
java代碼路徑不對,src/main/java