dromara/hutool

YamlUtil.dump写入文件之后第一行会有个!!xxxx这个东西,怎么去掉?

mayu3952678 opened this issue · 1 comments

YamlUtil.dump(prometheusConfig, fileWriter);

image

我想你Bean中是否存在一个子对象?

具体看下Yaml语法,!!表示一个强制对象类型。