.idea workspace.xml中添加如下,再重启即可 <option name="configurationTypes"> <set> <option value="SpringBootApplicationConfiguratiionType"/> </set> </option>