Intellij Idea中的Jetty报出Web application not found src/main/webapp错误的解决方案

今天在Intellij Idea中编译项目的时候,运行起来一直会报出如下的错误:

Web application not found src/main/webapp

当时感觉应该是什么没有设置好。所以就直接把这个报错内容放到google上搜索了一下,然后在stackoverflow中按照如下的文章设置,果真跑起来了:

http://stackoverflow.com/questions/22542968/intellij-idea-multi-project-wicket-app-does-not-find-webapp

记录一下,具体解决方式如下:

Go to   "Run-- edit Configuration" and set "Working directory" to $MODULE_DIR$

ps:Working directory 之前  D:\ideaWorkplace\xxx

猜你喜欢

转载自blog.csdn.net/cucmber/article/details/88870031