Analysis of image storage solutions, integration of front-end systems to realize image upload function, and realization of property list query function

1 Picture storage solution

In new listings, pictures need to be uploaded. In fact, not only new listings, there are many demands for uploading pictures throughout the project. Therefore, we need to
develop a service for uploading pictures to provide services.
To develop an image upload service, storage support is required, so our solutions are as follows:
1. Directly save images to the hard disk of the service
1. Advantages: convenient development and low cost
2. Disadvantages: difficult to expand
2. Use Distributed file system for storage
1. Advantages: easy to achieve expansion
2. Disadvantages: slightly more complex development (especially the development of complex functions)
3. Use nfs for storage
1. Advantages: development is more convenient
2. Disadvantages: need to have certain
4. Use third-party storage services
1. Advantages: Simple development, powerful functions, and maintenance-free 2.
Disadvantages:
The first and fourth solutions are used in the project for payment, and Ali is selected for third-party services Cloud OSS service.

1.2 Realize image upload

Implement the image upload function in haoke-manage-api-server for use by other services.
1. Import the corresponding dependent code as follows:

        <dependency>
            

おすすめ

転載: blog.csdn.net/weixin_40055163/article/details/124707763