spring boot 踩坑日记: Current request is not of type [org.springframework.web.multipart.MultipartHttpSer

错误信息:

java.lang.IllegalStateException: Current request is not of type [org.springframework.web.multipart.MultipartHttpServletRequest]: org.apache.catalina.connector.RequestFacade@1fa4d44b

错误位置:

注: MultipartHttpServletRequest : org.springframework.web.multipart.MultipartHttpServletRequest;

解决方案

这个问题是content-type设置的不对,把content-type去掉不要设置值

猜你喜欢

转载自blog.csdn.net/ityqing/article/details/83090034