티스토리 뷰

에러메세지

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문을 다시 작성한다.

 

반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함