file upload
·
Framework/SPRING BOOT
스프링 프레임워크 1. 2개의 의존성 설정 필요 commons-fileupload, connons-io 2. jsp comment: file: 3. DTO public class UploadDTO { String theText; MultipartFile theFile; 4. servlet-context.xml 5. Controller @PostMapping("/upload") public String upload(UploadDTO dto) { String theText = dto.getTheText(); CommonsMultipartFile theFile = dto.getTheFile(); String originalFilename = theFile.getOriginalFilename(); File f ..