解决方法:
1、File--->Setting--->Build,Execution,Deployment---->Application Servers--->"+"2、然后在run/Debug configurations里面就有了tomcat server选项;3、选择local-->然后起个名字;