티스토리 뷰

에러메세지

Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.result.ResultMapException: Error attempting to get column 'bl_cdate' from result set. Cause: java.lang.IllegalArgumentException

 

 

에러메세지 상세

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.result.ResultMapException: Error attempting to get column 'bl_cdate' from result set. Cause: java.lang.IllegalArgumentException

 

 

 

원인

메소드가 잘못되었거나 부적합한 인수를 전달했음을 나타내기 위해 던져집니다. 라고 하는데

 

mapper파일에 적절하지 않은 타입으로 SQL문을 작성했다.

Date타입으로 DB를 설계했는데, to_char함수로 String형식으로 변환해버렸다.

 

 

 

 

해결방법

to_char함수를 지우고 알맞은 Date타입으로 SQL문을 다시 작성한다.

 

반응형