본문 바로가기
IDE

The current request is not a multipart request

by 코닛 2025. 1. 18.

 

로그인 페이지에서 form에 enctype 작성했는지 확인

<form role="form" action="/member/join_run" method="post" enctype="multipart/form-data">

pom.xml에

https://mvnrepository.com/artifact/commons-io/commons-io/1.3.1

https://mvnrepository.com/artifact/commons-fileupload/commons-fileupload/1.3.1

 

넣었는지

 

servlet-context.xml에

 

    <beans:bean class="org.springframework.web.multipart.commons.CommonsMultipartResolver"
		id="multipartResolver">
		<beans:property name="maxUploadSize" value="10000000"></beans:property>		
	</beans:bean>

 

beans 작성했는지 확인해보자

혹시 또 안되면 프로젝트 우클릭 > Maven에서 update Project해주고

project에서 클린도 해주고

서버 path 확인한다음 서버 재시작해주고 해보자

대표사진 삭제

사진 설명을 입력하세요.

그럼이만 오늘도 오류없는 하루 보내십셔