Mybatis忘记配置mapper.xml
异常代码段:
org.apache.ibatis.binding.BindingException: Type interface com.lirongchun.ssm.Mybatis.dao.UserDao is not known to the MapperRegistry.
原因:忘记在Mybatis核心配置文件中配置Mapper.xml
解决方案:在mybatis-config.xml中配置文件
<mappers>
<mapper resource="***/***/***/XXXMapper.xml"/>
</mappers>