![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mybatis
AKA 404 Not Found
不怕孤独,努力沉淀。
展开
-
使用Pagehelper再次踩的坑.../捂脸/捂脸
!!!在使用Pagehelper分页助手连接Oracle数据库,如果涉及到多表查询的sql语句中,并且使用的mapper.xml进行配置的sql映射,含有resultMap时(mybatis注解配置sql映射的应该没有这个问题),查询出来的列,含有重复列名,例如有两个id字段,这时一定要消除重复列名,可以给其中一个起一个别名,不然PageHelper不知道该怎么进行分页,后台会报错!!!这次遇到的其他的小问题:1.在mybatis和sqlMapConfig.xml配置分页插件 <!--配置分页助原创 2020-07-30 19:47:04 · 564 阅读 · 0 评论 -
这个坑,我裂开了!!!mybatis的mapper.xml文件中sql语句前后有注释掉的sql都会报错,那注释这个功能在这还有毛用???/捂脸/捂脸...
Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property=‘productNum’, mode=IN, javaType=class java.l原创 2020-07-30 11:56:16 · 828 阅读 · 2 评论 -
java.lang.ClassCastException: com.github.pagehelper.PageHelper cannot be cast to org.apache.ibatis.p
使用PageHelper分页助手时报如下异常:Caused by: java.lang.ClassCastException: com.github.pagehelper.PageHelper cannot be cast to org.apache.ibatis.plugin.Interceptor导入的依赖 <dependency> <groupId>com.github.jsqlparser</groupId>原创 2020-07-28 19:37:22 · 982 阅读 · 3 评论