1:只需在File->createNewservlet
2:添加urlPatterns="";不需要再配置web.xml
4.3使用Servlet3.0创建servlet
原文:https://www.cnblogs.com/jiafeng1996/p/12308460.html