我现在用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:
测试类:
帮忙看看有什么问题,初学者 多谢!