/images/avatar.png

SpringBoot文件上传错误

更多分享:www.catbro.cn 错误如下,解决很简单 Description: Failed to bind properties under 'spring.servlet.multipart.max-file-size' to org.springframework.util.unit.DataSize: Property: spring.servlet.multipart.max-file-size Value: 30Mb Origin: class path resource [application.properties]:22:40 Reason: failed to convert java.lang.String to org.springframework.util.unit.DataSize Action: Update your application's configuration 我们只需要把Mb 改为MB