前提:正确安装了tomcat,具体可以参照我的博文tomcat for mac 安装/开启/关闭 选择新建项目,选择sdk,勾选webApplication,点击next 填写项目名称,点击finish 在WEB-INF中新建两个文件夹classes与lib,操作:new-》Directory