SpringBoot yml配置文件中 key出现特殊字符如何转义

得意莫骄傲,失意莫沮丧。 / 2023-05-12 / 原文

用“[ ]” 把key包装起来。示例:

test:

   "[test1:test2:test3]"