티스토리 뷰

org.apache.ibatis.binding.BindingException: Type interface Mapper is not known to the MapperRegistry

BindingException이면 바인딩을 해줘야 하는데 알 수 없다는 것이다. 알수없다는 얘기는 있어야 할곳에 없으니 알 수 없다는 것이다.

그럼 어디에 있어야 하는걸까

찾아보니

<configuration>

  <mappers>

    <mapper resource="com.Mapper.xml"/>

  <mappers>

</configuraion>

 

SqlMapConfig.xml 파일이 있는데 여기에 위에처럼 선언이 되어 있어야 하는데 선언이 안되서 발생한 에러였다.

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/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
글 보관함