본문 바로가기

전체 글

(182)
csv 다운로드 res.setContentType("text/csv;charset=MS949");res.setHeader("Content-Disposition", "attachment; fileName=\"" +URLEncoder.encode(fileNm, "utf-8")+".csv\";");//PrintWriter writer = new PrintWriter(new OutputStreamWriter(res.getOutputStream(), "EUC-KR"));//ICsvBeanWriter csvWriter = new CsvBeanWriter(writer,CsvPreference.STANDARD_PREFERENCE);ICsvBeanWriter csvWriter = new CsvBeanWriter(res.getWriter..
POI 3.15를 사용한 엑셀 다운로드 Apache POI 3.15를 사용한 엑셀 다운로드 기능WindingRoad 2017.04.28 15:32[2017-04-12 수요일]* 내용: Apache POI 사용1. 활용준비1) 라이브러리 다운로드2) import2. 적용 방법1) VO 생성2) AbstractView를 활용하여 ExcelBuilder Class 생성3) Bean 등록(beanNameViewResolver 활용)4) Controller 설정5) jsp(뷰) 1. 실행 방법 1) 라이브러리 다운로드 ※ 이 프로젝트는 메이븐 프로젝트가 아니기 때문에 직접 다운로드하고 직접 import하는 방식을 사용하였음 ※ 참고 사이트- 라이브러리 import 관련: http://jsonobject.tistory.com/127- Excel Writ..
Lucian - Close to You (feat. Jasmine Sokko) http://blog.naver.com/z1592z?Redirect=Log&logNo=221047445872
RequestParam examples 펌 - https://reversecoding.net/spring-mvc-requestparam-binding-request-parameters/ @RequestParam examples@RequestParam is an annotation which indicates that a method parameter should be bound to a web request parameter.1. Biding method parameter with web request parameterLet’s say we have our /books url that requires a mandatory parameter named category:1/books?category=javawe just need to add @R..
건강 관련 사이트 모음 토마토 주문 사이트 - http://www.tomatonuri.com/
JS 라이브러리 사이트 inputmask - http://javascriptools.sourceforge.net/samples/sample_mask.html
Example REST API with Java HTTP 펌 - https://www.ibm.com/support/knowledgecenter/SSBLQQ_8.7.1/com.ibm.rational.rit.ref.doc/topics/r_ritref_rest_api_ex.html Example of calling REST API with Java HTTPThe following example uses Apache HttpClient v4 to call a REST API.Exampleimport java.io.*; import java.net.*; import javax.xml.xpath.*; import org.apache.http.*; import org.apache.http.client.*; import org.apache.http.client.methods..
날짜 표현하기 SimpleDateFormat [Java] 날짜 표현하기 SimpleDateFormathttp://entireboy.egloos.com/4152244날짜 표현하는데는 DateFormat이 있다. 하지만 내가 원하는 패턴으로 보여주지 않는다. 이 클래스를 사용하면 "2009년 5월 29일 금요일" 또는 "2009. 5. 29", "09. 5. 29"와 같이 보여준다. 내가 원하는 표시형태는 "20090529"인데.. Date now = new Date(); DateFormat format1 = DateFormat.getDateInstance(DateFormat.FULL); System.out.println(format1.format(now)); DateFormat format2 = DateFormat.getDateInstance(Dat..