org.apache.ibatis.binding.BindingException: Type interface com.xxk.mapper.UserAnnotationMapper is not known to the MapperRegistry.
使用注解方式配置方法,接口未注册
解决方案:
1.找到mybatis的配置文件(mybatis-config.xml)
2.找到接口的存放包路径
4.在mybatis配置文件里配置接口的扫描路径
org.apache.ibatis.binding.BindingException: Type interface com.xxk.mapper.UserAnnotationMapper is not known to the MapperRegistry.
使用注解方式配置方法,接口未注册
解决方案:
1.找到mybatis的配置文件(mybatis-config.xml)
2.找到接口的存放包路径
4.在mybatis配置文件里配置接口的扫描路径