@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
最新推荐文章于 2024-01-22 11:23:05 发布