public static void setPro(String key, String value) throws Exception {
Properties pps = new Properties();
InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream("application.properties");
pps.load(in);
//InputStream 转 OutputStream
OutputStream out = Tools.parse(Thread.currentThread().getContextClassLoader().getResourceAsStream("application.properties"));
log.info("out:{}",out);
pps.setProperty(key, value);
log.info("pps:{}",pps);
pps.store(out, "Update " + key + "----value:"+value);
out.flush();
out.close();
}