美文网首页
Java读取properties配置文件时,中文乱码解决方法

Java读取properties配置文件时,中文乱码解决方法

作者: 努力2009 | 来源:发表于2016-12-08 19:09 被阅读110次
    Properties prop=new Properties();         
    prop.load(new InputStreamReader(Client.class.getClassLoader().getResourceAsStream("config.properties"), "UTF-8"));         
    

    相关文章

      网友评论

          本文标题:Java读取properties配置文件时,中文乱码解决方法

          本文链接:https://www.haomeiwen.com/subject/jcbsmttx.html