首页 新闻 赞助 找找看

sqlsession.getMapper() 和 SqlSession.selectOne()区别

0
[已关闭问题] 关闭于 2017-09-03 08:39

我现在用SqlSession.selectOne()可以查询数据库数据,运行sqlsession.getMapper()就会报错Exception in thread "main" org.apache.ibatis.binding.BindingException: Type interface com.mybatis.mapping.UserDao is not known to the MapperRegistry

mapper:

测试类:

帮忙看看有什么问题,初学者 多谢!

悟~的主页 悟~ | 菜鸟二级 | 园豆:202
提问于:2017-09-02 23:46
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册