Java_01_Java读取Properties

1、避免中文乱码

Properties prop=new Properties();
prop.load(new InputStreamReader(Client.class.getClassLoader().getResourceAsStream("config.properties"), "UTF-8"));

 

posted on 2013-08-05 15:37  mozinew  阅读(120)  评论(0编辑  收藏  举报

导航