带有 MySQL 和 Spring Boot 的 Hibernate Spatial [英] Hibernate Spatial with MySQL and Spring Boot
问题描述
我正在开发一个应用程序,它将位置数据从地图存储到 MySQL 数据库.我遇到了 MySQL 空间数据类型,它可用于对位置数据执行一些操作.我想将休眠空间与 Spring Boot 集成,但我无法这样做.我尝试了不同的代码变体,但每次都失败了.
I am developing an app that will store location data from map to the MySQL database.I came across MySQL spatial data types which can be useful to perform some operations on the location data. I wanted to integrate hibernate spatial with spring boot but I am unable to do so.I have tried different variations of code but every time this is failing.
我想使用以下工具查看 MySQL 空间的一个完整示例:Spring Boot(具有最新休眠的最新版本)MySQL.
I would like to see one complete example for MySQL spatial with following tools : Spring Boot (latest version with latest hibernate) MySQL.
还有我应该使用休眠空间的哪个依赖项以及在属性文件中要提及的内容以及代码应该如何?
also which dependency for hibernate spatial should I use and what to mention in the properties file and how the code should be?
确实找到了其他解决方案,但这些解决方案已经过时并且在实施时无法正常工作.
Did found other solutions but those are outdated and not working when implemented.
谢谢.
推荐答案
看看 https://www.baeldung.com/hibernate-spatial.最近更新的关于 Hibernate Spatial with MySQL 的教程
Have a look at https://www.baeldung.com/hibernate-spatial. A recently updated tutorial on Hibernate Spatial with MySQL
这篇关于带有 MySQL 和 Spring Boot 的 Hibernate Spatial的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!