首先要确认自己的eclipse是否安装了STS插件;
如果安装了插件还是没有颜色的话

application.yml->右键->Open With->Spring Yaml Properties Editor
OK

yml的字体没有颜色?

相关文章: