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错误位置:...
·
错误信息:
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去掉不要设置值

更多推荐
所有评论(0)