org.springframework.web.multipart.MultipartException

问题:Request processing failed; nested exception is org.springframework.web.multipart.MultipartException

消息 Request processing failed; nested exception is org.springframework.web.multipart.MultipartException: Failed to parse multipart servlet request; nested exception is java.lang.IllegalStateException: 由于没有提供multi-part配置,无法处理parts

描述 服务器遇到一个意外的情况,阻止它完成请求。

在application.xml配置文件中加上



    
        dispatcher
        org.springframework.web.servlet.DispatcherServlet

        

        
            contextConfigLocation
            classpath:application.xml
        
    
    
        dispatcher
        /
    

你可能感兴趣的:(spring)