본문 바로가기

개발/오류

file upload error Expected MultipartHttpServletRequest: is a MultipartResolver configured?

반응형

Request processing failed; nested exception is java.lang.IllegalArgumentException: Expected MultipartHttpServletRequest: is a MultipartResolver configured?




solution 


servlet-context.xml 에추가 


1
2
3
4
<!-- upload -->
    <beans:bean id="mulitpartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
        <beans:property name="maxUploadSize" value="104857600"/>
    </beans:bean>
cs


반응형