java Properties的用法

[ccn lang="java" tab_size="4" theme="blackboard" width="550" ]
Properties properties = new Properties();
try {
properties.load(ConfigUtil.class.getResourceAsStream("/conn.cfg.properties"));
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
[/ccn]