文章列表
如何读取property配置文件:
Resource res = new ClassPathResource("文件名.property");
Properties prop = new Properties();
try {
prop.load(res.getInputStream());
} catch (IOException e) {
e.printStackTrace();
}
INTERFACE_HOST = prop.getProperty("interface.host");
SIP_HTTP_P ...