Open dorofeev22 opened 6 years ago
Upload large file
(@RequestParam("files") MultipartFile file)
File targetFile = new File("C:\\ttt\\" + file.getOriginalFilename());
file.transferTo(targetFile);
<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
<property name="maxUploadSize" value="#{supportProperties.maxUploadSize}"/>
<property name="maxInMemorySize" value="100000"/>
</bean>
Validate XML with schema (xsd).
may be http://www.baeldung.com/xstream-deserialize-xml-to-object