@Override
public Config loadConfig() throws Exception {
ObjectMapper mapper = new ObjectMapper(new YAMLFactory());
Path configPath = Paths.get(System.getProperty("user.dir"), "ckfinder.yml");
return mapper.readValue(Files.newInputStream(configPath), Config.class);
}
yml转对象-ObjectMapper
猜你喜欢
转载自blog.csdn.net/m0_37859032/article/details/111588807
今日推荐
周排行