Others/Error

[스프링] Servlet.service() for servlet [appServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause java.lang.NullPointerException

beagle developer 2018. 1. 21. 13:58

Query에 Null 값이 들어갔을 경우 발생하는 문제입니다.


해결 방법


1. Controller, DAO, Service 단에서 각각에 넘겨주는 쿼리값의 주입이 됐는지 확인

2. DB가 run 중인지 확인