title: How to do Multiple File Upload in Spring - Java Config
body: <p>I been trying to find a example of how to do multiple file upload in Spring MVC <strong>without using XML only Java Config</strong>. So far have found nothing and a lot of people that just either want hits to sites or don't know what java configuration v xml configuration is.</p>
  
  <p>I don't use Spring Boot and don't want to as I want to learn this framework no matter how difficult.</p>
  
  <p>Even advice on how to convert the following line to java config would be appreciated:</p>
  
  <pre><code>&lt;bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"&gt;
      &lt;property name="maxUploadSize" value="1000000" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>Please do advise also what JARs i would need for the above multipartResolver.</p>
  
  <p>Thanks a bunch gang</p>