這裏有一篇相似問題java
選中項目 – 右鍵 – properties – project facets – 勾選dynamic web module和java – 下部有提示:further configuration available – 點擊進入–next – 勾選 Generate web.xml deployment descriptor – ok – apply --ok 完成web