简体   繁体   English

需要上传一个 xml 文件,解析并存储在数据库中,而不在任何物理物理位置存储文件

[英]need to upload an xml file, parse and store in database without storing file at any physical physical location

I need to upload an XML file, parse and store the data in the database without storing file at any physical location( if possible we can store it in request).我需要上传一个 XML 文件,解析并将数据存储在数据库中,而不将文件存储在任何物理位置(如果可能,我们可以将其存储在请求中)。 I am using spring, spring REST.我正在使用 spring、spring REST。

You can parse the XML data using Jackson, GSON,etc library by creating a REST API(as you want to use RESTfull web service). You can parse the XML data using Jackson, GSON,etc library by creating a REST API(as you want to use RESTfull web service). It would be quite easy to parse if you know the contract of your XML file by creating POJOs.如果您通过创建 POJO 知道 XML 文件的合同,那么解析将非常容易。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM