在.idea下的workspace.xml文件中找到 ,就添加option
<component name="RunDashboard">
找不到<component name="RunDashboard">标签
添加下面的标签
<component name="RunDashboard">
<option name="configurationTypes">
<set>
<option value="SpringBootApplicationConfigurationType" />
</set>
</option>
</component>