静态类读取配置文件

InputStream in=ConfInfo.class.getClassLoader().getResourceAsStream("conifg.properties"); 

你可能感兴趣的:(静态类读取配置文件)