总结一下:所使用,有效的方法:
我主要在使用方法2 去解决,试过一遍之后发现没解决,才看到方法1 删除application.yml 格式后,就好了,回忆起来,我原本是好的,idea提醒我安装插件,我可能手残点了一下导致。
我的 application.yml 图标 图1----》图2----》图3 一步步变回正常,,
![](https://i-blog.csdnimg.cn/blog_migrate/0afe65a7eff1aac09c138596422b134d.png)
![](https://i-blog.csdnimg.cn/blog_migrate/09f6f2278c0edc926f43fe93b8527071.png)
![](https://i-blog.csdnimg.cn/blog_migrate/bb0cae2e6e608a6b454f9d201afe03d1.png)
1方法一: .idea突然不能识别yml文件原因是:
在setting-file types-text中有了application.yml删除即可使用。
关于IDEA突然不识别yml文件解决方案_39°风的博客-CSDN博客https://blog.csdn.net/weixin_43864336/article/details/86512396
2.方法二:比较全面的方法
3.方法三: 【IDEA】- yml文件不显示小绿叶