### Error updating database. Cause: org.apache.ibatis.binding.BindingException: Parameter 'param1' not found. Available parameters are [1, 0, param1, param2]
### The error may involve xxx.mybatis.ContentsMapper.insertContents-Inline
### The error occurred while setting parameters
### SQL: INSERT INTO table(param1, param2) values(?,?)
### Cause: org.apache.ibatis.binding.BindingException: Parameter 'param1' not found. Available parameters are [1, 0, param1, param2]
이런 에러가 나면
mybatis 설정 xml에서
1.namespace나 alias 등을 유심히 살펴볼것 ( 내가만든 DO랑 alias의 이름 매치 등)
2.interface를 이용하는 경우 @Param을 이용하자!T_T
댓글 없음:
댓글 쓰기