일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Open Source
- MySQL
- 오픈소스
- maven
- Eclipse
- 설정
- Thymeleaf
- IntelliJ
- Tomcat
- Docker
- Spring Boot
- ubuntu
- oracle
- error
- JavaScript
- AJAX
- 문서
- Exception
- jpa
- Core Java
- STS
- Python
- git
- PostgreSQL
- MSSQL
- SpringBoot
- spring
- Source
- myBatis
- JDBC
- Today
- Total
목록Source (24)
헤르메스 LIFE
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..