반응형 IT 공부/Spring boot3 [스프링부트] filepath null S3 이미지를 업로드 후 수정할 때마다 수정본 이미지와 원본 이미지 모두 S3에 저장됐다. 수정했으면 하나만 저장이 되어야하는데 !! 그 이유를 살펴보니 파일을 저장할 때 currentFilePath를 가져오지 못하면서 오류가 났던 것이다. 빨간색 부분이 원래 "galleryDto.getFilePath()"로 설정되어 있었다. 하지만 filepath를 불러오지 못했고 "오늘날짜 + 제목"으로 지정해놓고 실행해보니 오류없이 진행되었다. 오류는 수정했으니 이제 중복이 나지 않도록 파일 제목을 정확한 값으로 넣어야 될 것 같다. 2022. 9. 26. [스프링부트] POST 오류 This application has no explicit mapping for /error, so you are seeing this as a fallback. Sat Sep 24 23:13:00 KST 2022 There was an unexpected error (type=Method Not Allowed, status=405). Request method 'POST' not supported org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'POST' not supported 난 제대로 작성했다고 생각했는데 도대체 뭐가 문제일까... 제발 찾고싶다 그렇게 시간을 보내다보니 찾았다.. 시큐리티 사용시 htm.. 2022. 9. 24. [Springboot] jpa mysql 오류 2022-09-18 18:48:06.559 ERROR 17396 --- [nio-8080-exec-3] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause java.lang.NullPointerException: null at com.sj.dalimi.controller.MainController.write(MainController.java:34) ~[ma.. 2022. 9. 18. 이전 1 다음 반응형