1.打开idea,在项目运行列表下拉选择“edit Configurations” 2.在打开的界面,点击“+”,再选择下面的Tomcat Server下的local 3.在打开的界面,第一行“Name”中填入tomcat的名称