[spring][error]Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:

HMS·2022년 9월 5일
0

이 에러가 발생했다면 원인이 다양한데, 주된 원인은 다음과 같다.

  1. mapper id가 틀린 경우
  2. Parameter bean의 field 명이 틀린 경우
  3. sql.xml에서 정의된 namespace와 DAO에서 호출하는 namespace가 다를 경우
  4. mapper가 정의되어 있지 않거나 스펠링이 틀린 경우
  5. mapper에 정의된 namespace 명칭이 같은 application 내에 중복 될 경우

나는 servler-context.xml 파일에 bean id값이 누락되어 있었고, DAO에서 호출시에"MemberMapper,insertMember" <- namespae와 id값 사이에 .이 아닌,를 넣어 오류가 발생했다.

출처 : https://gaga.tistory.com/51

profile
안녕하세요

0개의 댓글