One Demo handles the front-end and back-end multi-part uploading of large files, resumed uploading at breakpoints, and instantaneous uploading.

1Foreword File uploading is very common in project development. Most projects will involve the uploading of pictures, audios, videos, and files. Usually a simple Form can upload small files, but when encountering large files, such as more than 1GB, or When the user’s network is relatively slow, simple file upload is not applicable. The user […]

Spring IOC – Bean life cycle instantiation

As mentioned in the Spring startup process article, the initialization of the container starts with the refresh method, which calls the finishBeanFactoryInitialization method during the initialization process. In this method, the DefaultListableBeanFactory#preInstantiateSingletons method will be called. The core function of this method is to initialize non-lazy-loaded beans, and provides two extension points. The source code […]

org.hibernate.QueryException: could not instantiate class [com.ak47.cms.cms.dto.TechArticleDto] from

Table of Contents org.hibernate.QueryException: could not instantiate class [com.ak47.cms.cms.dto.TechArticleDto] from tuple Abnormal background solution in conclusion org.hibernate.QueryException: could not instantiate class [com.ak47.cms.cms.dto.TechArticleDto] from tuple When performing Hibernate-based data query, you may encounter an exception similar to ??org.hibernate.QueryException: could not instantiate class??, especially when using DTO (Data Transfer Object) from When mapping data in query results. […]

One Demo handles the front-end and back-end multi-part uploading of large files, resumed uploading at breakpoints, and instant uploading.

1Foreword File uploading is very common in project development. Most projects will involve the uploading of pictures, audios, videos, and files. Usually a simple Form can upload small files, but when encountering large files, such as more than 1GB, or When the user’s network is relatively slow, simple file upload is not applicable. The user […]

“Multi-threading Killer” Python concurrent programming tool: ThreadPoolExecutor allows you to easily start multiple threads at one time and kill a large number of tasks instantly!

As program complexity and data volume continue to increase, traditional synchronous programming methods can no longer meet the needs of developers. Asynchronous programming emerged, providing higher concurrency performance and better resource utilization. Python’s concurrent.futures module is a good asynchronous programming tool. It provides a set of interfaces for convenient concurrent programming. Python already has the […]

Front-end large file slice upload, breakpoint resume upload, instant upload and other solutions, examples of use in Vue

Look at the logic first How to slice? How to get the unique hash of a file? Interact with the backend to obtain the status of file upload, which can be used to judge the situation. Is it a second upload or a resume upload? Upload a sliced file and re-execute the failed file? Notify […]

springboot + minio realizes breakpoint resume and instant transmission

Breakpoint resume and instant transfer functions based on springboot + minio Controller /** * http * @param chunk file block object (shards, except the last one, must be greater than or equal to 5M, minio fixed requirement) * @return file block information */ @RequestMapping(value = “/fileUpload”, method = {RequestMethod.GET,RequestMethod.POST}) public R<FileChunkVO> fileUpload(@ModelAttribute FileChunkDTO chunk){ return […]

“Multi-threading Killer” Python concurrent programming tool: ThreadPoolExecutor allows you to easily start multiple threads at one time and kill a large number of tasks instantly!

As program complexity and data volume continue to increase, traditional synchronous programming methods can no longer meet the needs of developers. Asynchronous programming emerged, providing higher concurrency performance and better resource utilization. Python’s concurrent.futures module is a good asynchronous programming tool. It provides a set of interfaces that can facilitate concurrent programming. Python already has […]

springboot breakpoint upload, resume upload, instant upload implementation

Preface Springboot implements breakpoint upload, resume upload, and instant upload. The saving method provides local upload (stand-alone) and minio upload (can be clustered) This article is mainly about the back-end implementation solution. The database persistence uses jpa. 1. Implementation ideas The front-end generates file md5, and checks the file block upload progress or seconds based […]