IDEA添加项目依赖(将Tomcat中的servlet-api.jar添加到项目中去)

File -> project structure -> Modules -> 右侧Dependencies -> 然后点加号把配置好的Tomcat的依赖包加进去

原文地址:https://www.cnblogs.com/wgbs25673578/p/8449632.html