maven项目中,启动项目报错Web application not found src/main/webapps
解决方法:
1.打开对应run的配置

2.修改 working directory 的目录为该模块的根目录(maven默认是你导入的根模块的目录)

3.重新run就可以了。
本文解决Maven项目中启动时出现的Webapplicationnotfoundsrc/main/webapps错误。通过调整IntelliJ IDEA的run配置,修改workingdirectory至正确模块根目录,实现项目正常启动。
maven项目中,启动项目报错Web application not found src/main/webapps
解决方法:
1.打开对应run的配置

2.修改 working directory 的目录为该模块的根目录(maven默认是你导入的根模块的目录)

3.重新run就可以了。

被折叠的 条评论
为什么被折叠?