org.springframework.web.multipart.MultipartException: Failed to parse multipart servlet request;
nested exception is java.io.IOException:
org.apache.tomcat.util.http.fileupload.FileUploadException: Stream closed
ContentCachingResponseWrapper.copyBodyToResponse()
메소드를 반드시 호출해야 실제 리스폰스바디에 데이터가 세팅된다.org.springframework.http.converter.HttpMessageNotReadableException: Required request body is missing:
at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.readWithMessageConverters(RequestResponseBodyMethodProcessor.java:163)
따라서 재사용가능한 래퍼클래스를 따로 생성하여 처리하도록 한다.org.springframework.http.converter.HttpMessageConversionException:
type definition error: [simple type, class java.io.ByteArrayInputStream];
nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException:
No serializer found for class java.io.ByteArrayInputStream and no properties discovered to create BeanSerializer
(to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS)
(through reference chain: org.springframework.mock.web.MockMultipartFile["inputStream"])
기존 AWS RDS(MySQL) 이 성능에 비해 가격이 비싸서 Heroku Postgres 로 변경함.
커멘드
heroku login
heroku config -a ourmemory-postgres(app name)
DATABASE_URL 값 확인
spring.mvc.pathmatch.matching-strategy=ant_path_matcher