package com.ssq.www.test;
import java.io.IOException;
import com.ssq.www.util.PropertiesUtil;
public class MyTest {
private static String readValue ;
static{
try {
readValue = PropertiesUtil.readValue("LAT");
} catch (IOException e) {
e.printStackTrace();
}
}
public static Integer page=Integer.parseInt(readValue);
public static void main(String[] args) throws Exception {
System.out.println(page);
}
}
对象属性需要读取配置文件里的信息
最新推荐文章于 2022-06-08 09:25:42 发布