Properties中读取斜杠(\)的问题及解决办法

BufferedReader reader = ResourceUtil.getUtf8Reader("xxx.properties");
Properties properties = new Properties();
properties.load(reader);

替换成这样

BufferedReader reader = ResourceUtil.getUtf8Reader("xxx.properties");
Properties properties = new Properties();
properties.load(new StringReader(IoUtil.read(reader).replace("\\", "\\\\")));