org.apache.ibatis.binding.BindingException: Type interface com.he.dao.userDao is not known to the Ma

mapper没有注册
错误:
org.apache.ibatis.binding.BindingException: Type interface com.he.dao.userDao is not known to the Ma_第1张图片
原因:每一个mapper.xml都需要在mybaits核心文件中注册

org.apache.ibatis.binding.BindingException: Type interface com.he.dao.userDao is not known to the Ma_第2张图片
解决:写入mappers标签引入文件,这里写错了不是.而是/
org.apache.ibatis.binding.BindingException: Type interface com.he.dao.userDao is not known to the Ma_第3张图片

你可能感兴趣的:(错误日记,mybatis,xml,java)