File | Settings | Build, Execution, Deployment | Application Servers(添加tomcat)
run->Edit Configurations->Templates->tomcat server->local
点击Deployment,