问题描述
org.apache.ibatis.binding.BindingException: Type interface com.atguigu.mybatis.mapper.UserMapper is not known to the MapperRegistry.
导致原因
mybatis-config.xml 的 mappers 写的有问题。
解决方案
<mappers>
<mapper resource="mappers/UserMapper.xml"/>
</mappers>