Properties的使用

来源:互联网 发布:vb编程软件中文下载 编辑:程序博客网 时间:2024/05/22 07:48
Properties properties = new Properties();
properties.load(AlipayaAction.class.getResourceAsStream("/AlipayConfig.properties"));//获取该类下的AlipayConfig.properties文件,并加载成map形式
String payment_type = properties.getProperty("payment_type");//获取value

0 0
原创粉丝点击