欢迎使用普元产品知识库,本知识库包含普元应用开发平台EOSPlatform,流程平台BPS,企业服务总线ESB,微服务平台Microservice,运维管理平台Devops,数据集成平台DI

页面树结构

欢迎使用普元文档库

Skip to end of metadata
Go to start of metadata

【问题】

PAS6.5将springboot应用部署到应用服务器后,上传文件时报错:
Caused by: org.springframework.web.multipart.MultipartException: Could not parse multipart servlet request; nested exception is java.lang.IllegalStateException: Request.getParts is called without multipart configuration. Either add a @MultipartConfig to the servlet, or a multipart-config element to web.xml

【解答】

项目中解决方案:项目中对上传文件有自己的实现,不使用springboot默认的解析器。修改 springboot 启动类的注解配置:@SpringBootApplication(exclude = {MultipartAutoConfiguration.class})