error message : attempted to return null from a method with a primitive return type (int)
원인) resultType이 맞지 않거나 int형인 primitive type으로 지정한 경우 null값을 처리할 수 없다.
해결) resultType을 Integer인 Wrapper class를 사용하여 처리한다.
별도로.. null이 반환되면 안되는데 위에 에러가 뜬 경우로 where절에 userId를 가져오지 못해서 null을 반환하는 경우였다...ㅠ
error message : attempted to return null from a method with a primitive return type (int)
원인) resultType이 맞지 않거나 int형인 primitive type으로 지정한 경우 null값을 처리할 수 없다.
해결) resultType을 Integer인 Wrapper class를 사용하여 처리한다.
별도로.. null이 반환되면 안되는데 위에 에러가 뜬 경우로 where절에 userId를 가져오지 못해서 null을 반환하는 경우였다...ㅠ