Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- jQuery
- 정처기실기
- spring
- 인터페이스구현
- Database
- 제이쿼리
- 자바
- 정처기
- backend
- mybatis
- 자바스크립트
- javascript
- 리눅스
- 정보처리기사실기
- 오라클
- 스프링
- 실기
- 정보처리기사
- 1단원
- Linux
- 4단원
- 5단원
- 통합구현
- 요구사항확인
- mapper
- Java
- DB
- 정보처리기사필기
- 정처기필기
- 데이터베이스
Archives
- Today
- Total
세라공원
[spring ]MyBatis 오류: Invalid bound statement (not found) 본문
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): 경로
<<경우의 수 >>
1) Mapper 인터페이스와 Mapper xml에 오타가 있을 때
ex) Mapper 인터페이스 함수와 Mapper xml의 id가 일치하지 않을 때
2) Mapper xml 경로가 잘못된 경우 (main/resources/디렉토리명)
-> 디렉토리가 여러개면 정확한 위치를 찾지 못하는 경우가 있기 때문에 한 개의 디렉토리씩만 만드는 것이 좋다.
해결 : namespace에 경로 지정을 잘못함.
mapper 인터페이스 방식은 namespace에 경로를 적어줘야 오류가 나지 않는다.
<mapper namespace="com.community.sera.board.mapper.ReplyMapper">
<!-- 댓글 등록 -->
<insert id="insert">
insert into sera_reply (rno, bno, reply, replyer)
values (seq_reply.nextval, #{bno}, #{reply}, #{replyer})
</insert>
</mapper>
'Error' 카테고리의 다른 글
| [Linux][CentOS7] ifconfig 오류 : -bash: ifconfig: command not found (0) | 2022.10.25 |
|---|---|
| [linux] source /etc/profile 적용 후 커맨드 나오지 않는 상황 (0) | 2022.10.13 |
| [spring] jUnit , OracleDB 연결 에러 (0) | 2022.05.12 |
Comments