配置tomcat:file-->settings-->Build,Execution,Deployment-->Application servers,点击+,选择Tomcat server,在弹出来的对话框中选择tomcat的安装目录,点击ok后,显示如下: