![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mybatis
左边有只汪
程序员中的小欻欻
展开
-
今天遇到了一个bug PageHelper分页插件不生效问题
前提: springboot+pagehepler+maven插件自动生成sql语句问题: pageHelper传入1和10 但是未进行分页,还是查询全部解决办法:1.引入pom依赖<dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelp...原创 2020-03-17 09:37:10 · 683 阅读 · 0 评论 -
mybatis的sqlxml报错SQL String cannot be empty
前提:springboot+mybatis问题:执行查询时报错SQL String cannot be empty总结:这是因为在xml中配置了标签导致了标签中没有可以生效的sql代码了,会爆出这个异常,仔细检查xml中的sql代码,避免等标签中无sql代码的情况出现...原创 2020-03-17 10:41:45 · 6920 阅读 · 4 评论