public void save()

in shardingsphere-ui-backend/src/main/java/org/apache/shardingsphere/ui/repository/impl/YamlCenterConfigsRepositoryImpl.java [63:71]


    public void save(final CenterConfigs centerConfigs) {
        Yaml yaml = new Yaml();
        try (BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(new FileOutputStream(file))) {
            bufferedOutputStream.write(yaml.dumpAsMap(centerConfigs).getBytes());
            bufferedOutputStream.flush();
        } catch (IOException e) {
            throw new ShardingSphereUIException(ShardingSphereUIException.SERVER_ERROR, "save center config error");
        }
    }