public static Properties stringToProperties(String str) throws IOException{
        Properties properties = new Properties();
        properties.load(new ByteArrayInputStream(str.getBytes(StandardCharsets.UTF_8)));
        return properties;
    }
Reason:
Date: 2018/6/27
Company: www.dtstack.com
@author xuchao
core/src/main/java/com/dtstack/flink/sql/util/PluginUtil.java