在使用SqlSession的getMapper(StudentDao.class)方法中遇到的问题:Type interface com.dao.StudentDao is not known to the MapperRegistry.
解决方法:
把namespace
<mapper namespace=" com/dao/StudentDao">
改成
<mapper namespace=" com.dao.StudentDao">
在使用SqlSession的getMapper(StudentDao.class)方法中遇到的问题:Type interface com.dao.StudentDao is not known to the MapperRegistry.
解决方法:
把namespace
<mapper namespace=" com/dao/StudentDao">
改成
<mapper namespace=" com.dao.StudentDao">