原因:eclipse项目的sources root是WebRoot,而intellij idea的sources root是web,所以eclipse项目迁移到intellij idea中会出现找不到web下的web-inf下的web.xml而出现的问题。
解决办法:
1. 将放源文件的文件夹指定为Sources文件夹,将放资源的文件夹指定为Resources文件夹;
2. 将Path指定为WebRoot/WebContent下的WEB-INF下的web.xml;
3. 修改Modules的Web Resource Directory成WebRoot/WebContent即可。