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

2016년에 테스트했던 내용을 이번에 참조하면서 테스트 봤습니다. Windows 환경변수 추가 Windows 시스템 변수추가 Lib 추가 cxf-2.6.2.jar neethi-3.0.2.jar wsdl4j-1.6.2.jar xmlschema-core-2.0.3.jar web.xml 수정 ( Wildfly 에서는 삭제해야 함. ) Apache CXF Endpoint cxf cxf org.apache.cxf.transport.servlet.CXFServlet 1 cxf /services/* Server Runtime 환경 Eclipse > Windows > Preferences > Server > Runtime Environment CXF 설정 Eclipse > Windows > Preferences > S..
MySQL에는 PASSWORD(str)이란 함수가 있습니다. MySQL에는 OLD_PASSWORD()와 PASSWORD()로 나누어져있습니다. MySQL 4.1이전에 사용하던 OLD_PASSWORD() 함수와 이후에 사용하는 PASSWORD()란 함수 입니다. 사용할 일이 있을 지... 혹시 몰라 크롤링(?) 해둡니다. 소스를 오픈해주신 분들께 감사드립니다. 1. PASSWORD 함수 소스 import java.security.GeneralSecurityException; import java.security.MessageDigest; import org.springframework.security.crypto.password.PasswordEncoder; /** * MySql의 password() 알고..
출처 : http://www.mysamplecode.com/2012/03/apache-commons-ftpclient-java-example_16.html package com.as400samplecode; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.OutputStream; import java.util.Properties; import org.apache.commons.net.ftp.FTPClient; import org.apache.commons.net.ftp.FTPFile; import org.apache.commons.net.ftp.FTPReply; public class GetMyFiles { s..
운영서버에 파일을 올리기 위해서 오늘일자의 수정된 파일 목록을 떨구고, 그 파일을 다른 곳에 copy 해서 관리하는 간단한 Source 기준시간으로 부터 변경된 Source파일을 찾는 프로그램 package com.java .text; import java. io.BufferedReader ; import java. io.BufferedWriter ; import java. io.File ; import java. io.FileInputStream ; import java. io.FileOutputStream ; import java. io.FileReader ; import java. io.FileWriter ; import java. io.IOException ; import java. io.Prin..
String create[] = new String[]{"net.driver", "i:", "\\192.168.1.90\test_drive", "pw", "/user:id"} Process oProcess = new ProcessBuilder(create).start(); // 스캐너클래스를 사용해 InputStream을 스캔함 //Scanner s = new Scanner(oProcess.getInputStream(), "UTF-8"); Scanner s = new Scanner(oProcess.getInputStream(), "ms949"); while (s.hasNextLine() == true) { // 표준출력으로 출력 logger.info(s.nextLine()); } 실행결과 더보기 10:0..
자바를 이용한 이미지로 바코드 출력 소스로, 사용자가 원하는 이미지 TYPE과 SIZE를 정의 출력하여, PDF출력이나 엑셀출력시 클래스를 불러와 라벨작업에 활용가능하다. mport java.io.File; import java.io.FileOutputStream; import com.google.zxing.BarcodeFormat; import com.google.zxing.client.j2se.MatrixToImageWriter; import com.google.zxing.common.BitMatrix; //import com.google.zxing.oned.Code39Writer; import com.google.zxing.qrcode.QRCodeWriter; public class Qrcode {..
한때 &#으로 시작하는 이상한 문자열을 가져다 붙여넣기 하라는 글이 있었고, 신기하게 붙여넣기 하면 한글로 변형이 되는 것이 있었다. 다 와 같이 &#으로 시작하는 문자를 html entity 라고 하는데 아래 코드는 이러한 html entity 코드를 변환하는 자바스크립트, 자바 소스이다. 자바스크립트 : 자바 : package foren2.utils.http; public class HTMLEntityDecodeTest { public static String htmlEntityDecode( String s ) { int i = 0, j = 0, pos = 0; StringBuffer sb = new StringBuffer(); while (( i = s.indexOf("&#", pos) ) != -..
try { System.out.println( "utf-8 -> euc-kr : " + new String( word.getBytes( "utf-8" ), "euc-kr" ) ); System.out.println( "utf-8 -> ksc5601 : " + new String( word.getBytes( "utf-8" ), "ksc5601" ) ); System.out.println( "utf-8 -> x-windows-949 : " + new String( word.getBytes( "utf-8" ), "x-windows-949" ) ); System.out.println( "utf-8 -> iso-8859-1 : " + new String( word.getBytes( "utf-8" ), "iso-8..
https://hermeslog.tistory.com/710 [ModelMapper] Object to Object 변환 Object 변환에는 여러 가지 툴이 있습니다. ObjectMapper 나 BeanUtil 등입니다. https://hermeslog.tistory.com/483 [Jackson] ObjectMapper, String to Map, to List, Object to JSON Object를 Map으로 변경 Json 데이터를 Map으로 변경 Js hermeslog.tistory.com Object를 Map으로 변경 Json 데이터를 Map으로 변경 Json 데이터를 List로 변경 Object를 Json으로 변경 package test.json; import java.io.IOExcept..
private String paramMapToString( Map paramMap ) { return paramMap.entrySet() .stream().map( entry -> String.format( "%s -> \'%s\'", entry.getKey(), Joiner.on( "," ) .join( entry.getValue() ) ) ) .collect( Collectors.joining( ", " ) ); } Map paramMap = request.getParameterMap(); String params = ""; if (paramMap.isEmpty() == false) { params = " [" + paramMapToString(paramMap) + "]"; } logger.info(..