Pom.xml出現web.xml is missing and is set to true

參考鏈家https://blog.csdn.net/sinat_22911279/article/details/77454139

這是因爲沒有生成web.xml文件

解決辦法

1.右鍵項目選擇Properties-->Project Facets-->取消勾選Dynamic web Module,點擊apply



2.重新勾選Dynamic web Module,點擊下方 Further configuration available...


3.填寫Content directory 如圖所示即可




發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章