백엔드/Spring
[JPA] Swagger Error - [Request processing failed; nested exception is java.lang.NullPointerException] with root cause
작은소행성
2023. 8. 16. 10:44
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause
이유
NullPointerException이 발생한 이유는 Query 조건 중에 Null이 들어갔기 때문이다.
해결방법
쿼리에 Null이 안들어가도록 수정해주면 된다.
반응형