選中文件夾【Java Resources: src】,右擊【new】-【other】-【Web】-【servlet】
建立完成后,可以發現:【WebContent】-【WEB-INF】-【web.xml】,已經添加了剛才的那個servlet的信息。
---------