首先要确认自己的eclipse是否安装了STS插件; 如果安装了插件还是没有颜色的话application.yml->右键->Open With->Spring Yaml Properties EditorOK 相关文章: