반응형
public class ConnectionPropertyTest {
public static void main(String[] args) {
Properties properties = new Properties();
try {
properties.loadFromXML(new FileInputStream("connection_properties.xml"));
String root = (String)properties.get("root");
System.out.println(root);
String max = (String)properties.get("max");
System.out.println(max);
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
}
root 100
반응형
'Java & Spring > 도움이 되는' 카테고리의 다른 글
| 네티 관련 좋은 git URL (0) | 2018.04.11 |
|---|---|
| [JAVA] 자바 Jsoup으로 웹 크롤러 만들기 예제(get / post / https) (2) | 2018.04.09 |
| Eclipse 에서 UML 그리기 : AmaterasUML (0) | 2013.10.17 |
| Eclipse에 Spring 설치 및 Maven 연동 (0) | 2013.10.17 |
| 이클립스에서 안드로이드 SDK 설치하기 (0) | 2013.07.30 |
WRITTEN BY
,




