When I upload pictures to view files using the postman, an error has occurred in the following figure, after seeing very ignorant force.
figure 1
Internet search a bit, down is attributed to the parameters inconsistencies caused. But there are some because they did not annotated, illustrated as follows:
figure 2
About inconsistencies parameters, mainly due to FIG. 1 "Select File" left of the key value (figure above is Files), the first line 115 in FIG. 2 that the parameters MultipartFile file "file" inconsistencies caused. After so I will key value from the "files" was changed to "file", as illustrated, the problem is solved!
over...
reference:
1. https://blog.csdn.net/qq_15118961/article/details/80422379
2. https://blog.csdn.net/www_hzy_com/article/details/46352723