今天在 Github 上下载一个 Spring boot 项目,不知道为何导入后,没有显示 application 图标,也就是说不能运行。
然后稍微用本地可以运行的项目稍微对比,发现解决方法,成功运行。
1、点击编辑
2、点击“+”号,然后选择 Spring boot
3、在 Main class 处,将 Application 主文件选择进去,然后确定保存
4、成功如下
OK 搞定,希望对你有用
本文由老郭种树原创,转载请注明:https://guozh.net/idea-imported-spring-boot-project-cannot-start/
没有springboot那个选项咋办