dorofeev22 / caregiving

CRM of caregiving
The Unlicense
0 stars 1 forks source link

Import XML-file #29

Open dorofeev22 opened 6 years ago

dorofeev22 commented 6 years ago

may be http://www.baeldung.com/xstream-deserialize-xml-to-object

dorofeev22 commented 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>
dorofeev22 commented 6 years ago

Validate XML with schema (xsd).