![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mybatis
文章平均质量分 85
Anliexo
即单纯,又成熟
展开
-
mysql经纬度计算距离,官方支持方法
先看下官方文档 ST_Distance_Sphere(g1,g2[,radius]) Returns the mimimum spherical distance between two points and/or multipoints on a sphere, in meters, orNULLif any geometry argument isNULLor empty. Calculations use a spherical earth and a configur...原创 2020-10-21 15:31:39 · 2889 阅读 · 1 评论 -
pagehelper超过页数仍然可以查出数据
使用pagehelper查询的时候,明明没有下一页的时候,还是会查询最后一页的内容示例接收到的数据是这样的调试时候的数据是这样的查看配置其中pagehelper.reasonable这个属性含义是分页参数合理化,默认值为false,如果pageNum>pageSize,默认会查询最后一页的数据。禁用合理化后,当pageNum>pageSize会返回空数...原创 2019-08-20 10:45:19 · 2098 阅读 · 2 评论