1、首先确定yml所在的文件夹类型是不是 Resources Root 类型的【如下图】,如果不是,就在 resources 上右键 Make Directory as Resources Root

idea springboot yml 无自动提示

2、看 yml 文件是不是没得小绿叶【如上图】

3、项目右键点 Modules,然后点 + 号看是否无 spring 选项。没有:进行第4步;有:进行第5步

idea springboot yml 无自动提示

4、添加Spring Assistant、Spring Boot、Spring Support插件:File - Setting - Plugins 里面搜索对应的插件,然后安装即可,安装完之后重启 idea

idea springboot yml 无自动提示

5、重启之后重新进 Modules 里面点添加就会有 spring 选项了

idea springboot yml 无自动提示

6、选择spring之后即可,从此yml有了小树叶,也有了自动提示

idea springboot yml 无自动提示

idea springboot yml 无自动提示

 

 

 

 

相关文章:

  • 2021-11-16
  • 2022-12-23
  • 2022-01-04
  • 2021-12-19
  • 2021-12-30
  • 2021-11-01
  • 2021-11-01
猜你喜欢
  • 2022-12-23
  • 2021-08-16
  • 2022-12-23
  • 2021-07-30
  • 2021-08-15
  • 2021-12-02
  • 2021-09-03
相关资源
相似解决方案