1)파일 업로드 입력화면 수정

2.Command 객체 수정

3.pom.xml 에 FileUpload 라이브러리 추가

4.MultipartResolver설정

이름을 다르게하면 컨테이너가 읽을수가 없으므로 빈객체의 이름을 바꾸면 안된다 속성값의 -1은 업로드파일의 크기가 무제한이라는 의미
5.파일업로드 처리

발생오류
콘솔창에 오류값도 안뜨고 400오류
org.springframework.validation.BeanPropertyBindingResult
http status 400 – bad request spring mvc
이런거뜸
알고보니 enc-type에 multipart에 L 이 빠져서 mutipart라고 오타
업로드시 이런오류에는 enc-type을 먼저 확인할것