//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);
相关文章
- 04-22libpng warning: iCCP: known incorrect sRGB profile告警处理
- 04-22关于.ssh目录下的known_hosts文件的补充
- 04-22spring cloud微服务启动报Cannot execute request on any known server 的解决办法
- 04-2206: known_hosts文件作用,以及常见问题
- 04-22Name or service not known异常处理方法总结
- 04-22Name or service not known原因大全
- 04-22修改libpng库源码解决libpng warning: iCCP: known incorrect
- 04-22Git切换分支报错:error:pathspec ‘dev‘ did not ma tch any file(s) known to git.
- 04-22[FindBugs分析记录]Redundant nullcheck of o,which is known to be non-null
- 04-22org.apache.ibatis.binding.BindingException: Type interface * is not known to the MapperRegistry.