目录

SpringBoot文件上传错误

目录

http://image.catbro.cn/bc1674bfaace4.png


  • 错误如下,解决很简单 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即可,两个均是大些,KB亦如此