1.找到项目的.Idea文件下的workspace.xml文件
2.打开workspace.xml文件,在文件的<project>标签下添加代码
<component name="RunDashboard">
<option name="configurationTypes">
<set>
<option value="SpringBootApplicationConfigurationType" />
</set>
</option>
</component>