spring - multipart 오류

2021. 8. 30. 20:19(구)공부/오류

728x90

내 경우에는 스프링 시큐리티를 적용하기 이전엔 문제가 없었으니 적용 후에 이 문구를 추가해 줘야했음

 

Unable to process parts as no multi-part configuration has been provided

 

tomcat context.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>WEB-INF/tomcat-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="" />
    -->
    
    <!-- allowCasualMultipartParsing="true" path="/" 이 부분과  <Resources cachingAllowed="true" cacheMaxSize="100000"/> 이 부분 추가-->
728x90

'(구)공부 > 오류' 카테고리의 다른 글

mySQL  (0) 2021.08.11