spring-framework
spring-framework copied to clipboard
Error receiving file array check
public void upload(@RequestPart MultipartFile[] files){ ...}
The above comments @RequestPart, Default property required=true. When I receive an array of files, if the files property is not passed, the check still passes, because reading the source code shows that if the files property is not passed, the empty array is returned instead of null.
MultipartResolutionDelegate.java

RequestPartMethodArgumentResolver.java
