如下图所示: 右上角没有显示Tomcat: 解决办法: 点击Add Configurations 出现如下界面,点击+按钮 选择Tomcat --Local 将你刚才配置的Tomcat添加到项目中,现在右上角就有Tomcat图标了