목록Language/Java (4)
에라모르겠다(‘◇’)?

321kb 용량을 가진 엑셀 (시트 3개정도? 있었음) 의 시트 복사해서 새로운 엑셀로 생성하는 과정에서 발생한 오류이다 wookbook 객체를 생성하기 전에 해당 코드를 넣어주면 된다고 한다 ZipSecureFile.setMinInflateRatio(0); ▼ 아래 참고 ! ZipSecureFile.setMinInflateRatio(0); Workbook workbook = new XSSFWorkbook(); https://stackoverflow.com/questions/44897500/using-apache-poi-zip-bomb-detected Using Apache POI - Zip Bomb detected When I am trying to write data to an Excel sheet,..

getDTO 메소드를 활용하여 object 조회 시 조회된 값을 엑셀로 export 하는 경우 사용 1. test1 dto 생성 package com.study.excel.test2.dto; import org.apache.ibatis.type.Alias; import lombok.Data; @Data @Alias("test1") public class Test1DTO { private String id; private String name; private String age; } 2. controller 로직 작성 package com.study.excel.test2.controller; import java.io.ByteArrayOutputStream; import java.io.FileOutputS..

python으로 겁나 간단하게 requests 사용해서 http요청 하다가 스프링으로 할라니까 살..짝 ^^ (사실 많이) 헷갈려서 참고용으로 포스팅 -- 사용예정 : Spring RestTemplate 1. map 사용 (고정값) import org.springframework.http.HttpEntity; import org.springframework.http.HttpHeaders; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.util.LinkedMultiValueMap; import org.springframework.util.Mul..

참고 : https://stackoverflow.com/questions/50849800/how-to-read-excel-file-using-spring-boot How to read excel file using spring boot I am making a spring boot application which will take the excel file and store its content and store it in database. I have tried many ways..but not successful. Does anyone have an idea about how t... stackoverflow.com * 원래 게시판 만들라다 급 유저로 변경함..그래서 패키지명 이상한데 흐린눈...ㅇㅅ..