티스토리 뷰
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
- mariaDB
- 전자정부프레임워크
- download
- eGovFramework
- 설치
- autohotkey
- lineage2m
- 수원
- 배드워즈
- java
- 호이안
- 블루스택
- 로블록스
- 라즈베리파이
- 베트남
- 다운로드
- 메소드 제한
- nginx
- mysql
- tomcat
- 단축키
- Spring Boot
- 윈도우
- 시즌패스
- 오토핫키
- 구글 플레이 게임즈
- 시즌3
- 설정
- 달빛조각사
- Spring
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함