1.添加tomcat sever。 2.添加web。 可以直接选择web文件夹 3.配置web后有两个地方要注意: 3.1 output path 生成class文件的目录 3.2 然后就是导包了 相关文章: