spring
文章平均质量分 52
SDJN_ONE
接小程序、网站、ERP流程系统定制开发!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
SpringBoot+MySQL使用Point实现范围搜索
本文介绍了在MyBatis中处理地理坐标点(GeoPoint)的实现方案。通过定义GeoPoint对象、坐标转换器(GeoPointConverter)和自定义TypeHandler(GeoPointTypeHandler),实现了数据库二进制数据与Java对象的相互转换。配置MyBatis扫描TypeHandler包路径后,即可在SQL查询中直接使用GeoPoint类型参数,支持范围查询等地理空间操作。示例展示了基于ST_Distance_Sphere函数的距离查询实现,使开发者可以像处理普通类型一样操作原创 2025-12-03 10:21:42 · 386 阅读 · 0 评论 -
错误@org.springframework.beans.factory.annotation.Autowired(required=true)
在实体类User上添加@Component注解 Description: Field user in com.crab.bookol.controller.UserController required a bean of type 'com.crab.bookol.entity.User' that could not be found. The injection point has the following annotations: - @org.springfra...原创 2021-01-26 16:42:11 · 302 阅读 · 0 评论
分享