In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the relevant knowledge of "how to upload spring+hibernate files and put them into large fields". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
First prepare the SPRING framework, the HIBERNATE framework, and the common-file_upload.jar package.
Of course, don't forget the database JDBC-driven jar. Here is oracle, so use class12.jar.
The Oracle database is used here, and a fileupload directory is created under webroot. In order to put up the documents sent in.
Wait a minute.
Now that you have used the Srping framework, look through the Srping manual for his support for file uploads. Spring is made up of plug-in objects in the built-in multipart package
It's done by MultipartResovler. Spring provides MultipartResovler to support Commons FileUpload (http://jakarta.apache.org/commons/fileupload)
And Cos FileUpload (http://www.servlet.com/cos), so we also have to prepare a common-file_upload.jar at the beginning.
By default, Spring has no multipart processing. So to use multipart processing, you need to add a multipart parser to the context of the web application. Then your request includes multipart, in the context
The defined MultipartResolver will parse it, so that the multipart attribute in your request will be processed like any other attribute.
Please look at the following:
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.