목록SPRING/chapter07_File (8)
WON.dev
패키지명 : controller (wed.xml파일에 추가) encodingFilter org.springframework.web.filter.CharacterEncodingFilter encoding utf-8 forceEncoding true encodingFilter /* chapter03_MVC/pom.xml에서 변경할것들 1. 1.611로변경 2. 3.1.1.RELEASE5.0.7로변경 3. log4j 밑에 runtime주석처리 아니면 삭제 4. 2.53.1.0으로 변경 javax.servlet-apijavax.추가(바로위에) 5. 4.74.12로변경 6. 1.611로변경 1.611로변경 7. https://mvnrepository.com/artifact/org.projectlombok/lomb..
4.0.0 org.joonzis controller chapter07_File war 1.0.0-BUILD-SNAPSHOT 11 5.0.7.RELEASE 1.6.10 1.6.6 org.springframework spring-context ${org.springframework-version} commons-logging commons-logging org.springframework spring-webmvc ${org.springframework-version} org.aspectj aspectjrt ${org.aspectj-version} org.slf4j slf4j-api ${org.slf4j-version} org.slf4j jcl-over-slf4j ${org.slf4j-version} runt..
Submit
Upload with Ajax Upload
package org.joonzis.domain; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor @AllArgsConstructor public class AttachFileDTO { private String fileName; private String uploadPath; private String uuid; }
package org.joonzis.controller; import java.io.File; import java.net.URLDecoder; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.UUID; import org.joonzis.domain.AttachFileDTO; import org.springframework.core.io.FileSystemResource; import org.springframework.core.io.Resource; import org.springframework.http.HttpHeaders;..