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