BindingException: Type interface XXX is not known to the MapperRegistry报错解决
问题描述测试 mybatis 的选择操作时,IDEA报错,org.apache.ibatis.binding.BindingException: Type interface xxx is not known to the MapperRegistry.解决方法原因:每一个Mapper.xml都需要在Mybatis核心配置文件中注册!将下面代码加到 mybatis-config.xml 中。<mappers> <mapper resource="com/dingha