일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- reactjs
- table
- 쿼리
- restapi
- jdk
- 자바스크립트
- React
- 스프링부트
- 보안취약점
- java
- javascript
- sql
- 데이터베이스
- 스프링
- JS
- 개발공부
- EXTJS
- GIT
- 자바
- Intellij
- 개발
- DATABASE
- mssql
- springboot
- Spring
- component
- 리액트
- 컴포넌트
- crud
- Vue
- Today
- Total
준준의 기록일지
프로퍼티 작업했던것 본문
"이 포스팅은 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다."
//jh.won 시스템 메세지 프로퍼티에 추가.
ArrayList<String> message_list= new ArrayList<>();
OutputStream output=null;
List<com.timegate.infra.vportal.personal.object.SysLanguage> sysLanguage = systemService.getSysLangauge();
if(sysLanguage != null && !sysLanguage.isEmpty()) {
for(SysLanguage sysLang : sysLanguage) {
String value = sysLang.getLangValue();
if(sysLang.getLangLocale().contains("ko")) {
if(value != null && !value.isEmpty()) {
value = AESCrypt.Decrypt(value);
}
}
props.put(sysLang.getLangKey(), value);
message_list.add(sysLang.getLangKey());
}
}
//jh.won 시스템 프로퍼티경로생성 및 메세지 저장.
try {
File message_f = new File(message_filePath);
output = new FileOutputStream(message_f);
for(int i=0; i<message_list.size(); i++) {
byte[] data=message_list.get(i).getBytes();
byte[] equal="=".getBytes();
byte[] value=GlobalProperties.getProperty(message_list.get(i)).getBytes();
byte[] line = System.getProperty("line.separator").getBytes(); //개행.
output.write(data);
output.write(equal);
output.write(value);
output.write(line);
}
} catch (Exception e) {
e.printStackTrace();
} finally {
output.flush();
output.close();
}
} catch (Exception e) {
e.printStackTrace();
}