Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- maven
- zabbix
- spring transaction
- jstl
- @SqlResultSetMapping
- ibatis
- bootstrap jquery datepicker
- JBoss Seam
- JPA
- gwt
- querydsl
- guvnor
- CEP
- jquery
- SVN
- drools
- Spring
- Hudson
- java tip
- MySQL
- spring jpa
- rember me
- spring security
- GEventEvaluator
- Drools Fusion
- jenkins
- COC
- jquery serialize
- gwt-ext
- custom filter
Archives
- Today
- Total
목록spring tip (1)
봉 블로그
properties 읽고 값 가져오기.
직접 FileInputStream 을 이용할경우 jar 파일 안에 있는 프로퍼티 파일을 읽을때 에러가 난다. private String getDbUsername()throws IOException{ Properties props = PropertiesLoaderUtils.loadAllProperties("property/"+System.getProperty("server.mode")+"/default.jdbc.properties"); return props.getProperty("jdbc.username"); }
java
2009. 9. 29. 14:34