Initial project
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package com.imyeyu.config;
|
||||
|
||||
import org.yaml.snakeyaml.DumperOptions;
|
||||
import org.yaml.snakeyaml.nodes.Tag;
|
||||
import org.yaml.snakeyaml.representer.Representer;
|
||||
|
||||
/**
|
||||
* @author 夜雨
|
||||
* @version 2024-05-01 14:03
|
||||
*/
|
||||
public class ConfigRepresenter extends Representer {
|
||||
|
||||
public ConfigRepresenter(DumperOptions options) {
|
||||
super(options);
|
||||
|
||||
this.nullRepresenter = data -> representScalar(Tag.NULL, "");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user