2021年3月16日 星期二

了解 web.xml 檔案內容

目標設定:
  • 利用 Eclipse 功能建立專案的 web.xml 檔案!
  • 專案的產生,請查看上一篇文章

產生 web.xml 檔案流程
  1. 開啟 Eclipse IDE
  2. 在「Project Explorer」中,對「Deployment Descriptor: FirstServlet」按下滑鼠右鍵,選擇「Generate Deployment Descriptor Stub」!
  3. 在「WebContent」下,可看見下列目錄架構:web.xml 在 WEB_INF 目錄底下!
web.xml 檔案說明