티스토리 뷰
public static void main(String[] args) { Map map = new HashMap(); System.out.println("==============get properties=============="); map = getMyProperties("/test/db.properties"); }
//프로퍼티스 파일 읽어. 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
- 호이안
- java
- 시즌패스
- 베트남
- eGovFramework
- 블루스택
- 오토핫키
- 라즈베리파이
- nginx
- 단축키
- 설정
- 윈도우
- 수원
- Spring Boot
- tomcat
- lineage2m
- 배드워즈
- 시즌3
- mysql
- 다운로드
- download
- mariaDB
- Spring
- 메소드 제한
- 달빛조각사
- 전자정부프레임워크
- 구글 플레이 게임즈
- 설치
- autohotkey
- 로블록스
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
글 보관함