error/Spring
파일 업로드시 Unable to process parts as no multi-part configuration has been provided 에러
밍구몬
2019. 6. 21. 09:19
Unable to process parts as no multi-part configuration has been provided에러는 톰켓 8.5 버전을 사용할 때 파일을 업로드하려고 했더니 오류가 났다.
이 오류를 해결하기 위해서는 Server의 web.xml을 수정해 주어야 한다.
수정전 web.xml
수정후 web.xml
<Context allowCasualMultipartParsing="true" path="/">
<!-- Default set of monitored resources. If one of these changes, the -->
<!-- web application will be reloaded. -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<WatchedResource>${catalina.base}/conf/web.xml</WatchedResource>
<Resources cachingAllowed="true" cacheMaxSize="100000" />
<!-- Uncomment this to disable session persistence across Tomcat restarts -->
<!--
<Manager pathname="" />
-->
</Context>