in shardingsphere-ui-backend/src/main/java/org/apache/shardingsphere/ui/repository/impl/YamlForwardServiceConfigsRepositoryImpl.java [61:69]
public void save(final ForwardServiceConfigs forwardServiceConfigs) {
Yaml yaml = new Yaml();
try (BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(new FileOutputStream(file))) {
bufferedOutputStream.write(yaml.dumpAsMap(forwardServiceConfigs).getBytes());
bufferedOutputStream.flush();
} catch (IOException e) {
throw new ShardingSphereUIException(ShardingSphereUIException.SERVER_ERROR, "save registry config error");
}
}