CardMapper is not known to the MapperRegistry.

//Type interface com.itheima.demo01.one_to_one.CardMapper is not known to the MapperRegistry.
//Mybatis注解一定要注册自己写的接口类
sqlSessionFactory.getConfiguration().addMapper(CardMapper.class);
sqlSessionFactory.getConfiguration().addMapper(PersonMapper.class);
posted @ 2021-01-10 10:53  厚我  阅读(150)  评论(0编辑  收藏  举报