이 에러가 발생했다면 원인이 다양한데, 주된 원인은 다음과 같다.
- mapper id가 틀린 경우
- Parameter bean의 field 명이 틀린 경우
- sql.xml에서 정의된 namespace와 DAO에서 호출하는 namespace가 다를 경우
- mapper가 정의되어 있지 않거나 스펠링이 틀린 경우
- mapper에 정의된 namespace 명칭이 같은 application 내에 중복 될 경우
나는 servler-context.xml 파일에 bean id값이 누락되어 있었고, DAO에서 호출시에"MemberMapper,insertMember" <- namespae와 id값 사이에 .이 아닌,를 넣어 오류가 발생했다.
출처 : https://gaga.tistory.com/51