일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Spring Boot
- Docker
- Python
- maven
- AJAX
- JDBC
- git
- STS
- Exception
- oracle
- myBatis
- PostgreSQL
- MySQL
- Eclipse
- Thymeleaf
- 문서
- JavaScript
- Core Java
- Open Source
- ubuntu
- Tomcat
- 설정
- 오픈소스
- SpringBoot
- MSSQL
- error
- jpa
- IntelliJ
- Source
- spring
- Today
- Total
목록Source (25)
헤르메스 LIFE
/** * Character Set를 ISO-8859-1로 컨버전 * @param str 변환할 문자 * @return String 변환문자 */ public String convISO(String str) { String tmp = new String(""); if(str==null||str.length()==0) return ""; try { tmp = new String(str.getBytes("EUC-KR"), "ISO-8859-1"); } catch (UnsupportedEncodingException uee) { log(CLASS_NAME + ".convISO()","Character Set변환을 실패했습니다."+uee.toString()); } catch (Exception e) { log(..
public class StringToUni { public static void main(String[] args) { String str = "아름다운"; StringBuffer strVal = new StringBuffer(); for(int i = 0; i < str.length();I++) { char c= str.charAt(i); strVal.append("\\u" + Integer.toHexString(c)); } System.out.println(strVal.toString()); // 결과 : \uc544\ub984\ub2e4\uc6b4 } }
import java.io.UnsupportedEncodingException; public class UniToString { public static void main(String[] args) { String hexStr = "\uc544\ub984\ub2e4\uc6b4"; String ls = null; try { ls = new String(hexStr.getBytes(), "UTF-8"); } catch(UnsupportedEncodingException e) { e.printStackTrace(); } System.out.println(ls); // 결과 : 아름다운 } }
프로젝트는 이제 대부분 Eclipse를 사용하게 됩니다. 다른 프로젝트를 하다가 그 프레임워크를 그대로 옮겨와서 사용하게 되는 경우 CVS를 사용하게 되면 그 이하의 폴더까지 옮겨 오게 되고 CVS 폴더의 환경자체가 이동되어 귀찮은 작업을 할 경우가 있습니다. 이 때 CVS의 폴더를 완전히 삭제하고 새롭게 CVS나 SVN에 연결하기 위해 만들었습니다. package cruise.util; import java.io.File; public class DeleteCVSFolder { public static void main(String[] args) throws Exception { File srcDir = new File("C:\\project\\workspace"); // Workspace 폴더 fin..
Apach FTPClient 를 이용한 FTP Client Source package com.study.springboot.utils; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import org.apache.commons.net.ftp.FTPClient; import org.apache.commons.net.ftp.FTPReply; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * * Reply Codes ***************************************************************** * 20..