1、菜单栏的project 勾选 Build Automatically 2、双击添加项目的servers进入tomocat设置publishing,选中automatically publish when resources change