티스토리 뷰
1 2 3 4 5 | public static void main(String[] args) { Map map = new HashMap(); System.out.println( "==============get properties==============" ); map = getMyProperties( "/test/db.properties" ); } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | //프로퍼티스 파일 읽어. public static Map getMyProperties(String propertiesFile){ Properties properties = new Properties(); Map map = new HashMap(); try { properties.load( new FileInputStream(propertiesFile)); for (String key : properties.stringPropertyNames()) { map.put(key, properties.getProperty(key)); } } catch (IOException e) { e.printStackTrace(); } return map; } |
'웹개발자 > java' 카테고리의 다른 글
multipart filter spring (전자정부프레임워크) (0) | 2018.11.12 |
---|---|
ibatis selectKey 오류 처리 (0) | 2018.07.27 |
spring boot - 4. mysql 연동(mybatis) (0) | 2017.11.10 |
spring boot - 3. jsp 사용 (0) | 2017.11.10 |
spring boot - 2. Srping Starter Project 생성 (0) | 2017.11.10 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- tomcat
- 라즈베리파이
- 설정
- 시즌3
- eGovFramework
- Spring
- 오토핫키
- 시즌패스
- 달빛조각사
- nginx
- 호이안
- Spring Boot
- 수원
- 윈도우
- lineage2m
- mysql
- java
- 설치
- 메소드 제한
- download
- 구글 플레이 게임즈
- 블루스택
- 다운로드
- 단축키
- autohotkey
- mariaDB
- 전자정부프레임워크
- 로블록스
- 베트남
- 배드워즈
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
글 보관함