idea如何实现Servlet接口 project structure ---> Libraries ---> 点击加号+ ----> 找到安装tomcat的目录,再找lib下的servlet-api.jar 包 一路点击应用即可 相关文章: