PalyBoy
2020-07-17 17:00:53
证
SpringBoot通过Redis的Geo获取当前位置方圆一公里的业务代理点
项目描述
SpringBoot通过Redis的Geo获取当前位置方圆一公里的业务代理点。
运行环境
jdk8+redis+STS+maven
项目技术(必填)
springboot + redis + junit+springdata redis
依赖包文件(可选)
链接:https://pan.baidu.com/s/1i9Oo3NBRMDoD7_Mqv86Jyg
提取码:jisp
项目截图(必填)
运行截图(必填)
根据给定地理位置坐标获取指定范围内的地理位置集合
根据给定地理位置获取指定范围内的地理位置集合
获取某个地理位置的 geohash 值
注意事项
1.Error running 'RedisGeoApplicationTests.testGetTwoCityDistance':
Failed to resolve org.junit.platform:junit-platform-launcher:1.6.2
<dependency> <groupId>org.junit.platform</groupId> <artifactId>junit-platform-launcher</artifactId> <scope>test</scope> </dependency>
Failed to resolve org.junit.vintage:junit-vintage-engine:5.6.2
<dependency> <groupId>org.junit.vintage</groupId> <artifactId>junit-vintage-engine</artifactId> <scope>test</scope> </dependency>
2.redis server版本需要使用新版 ,老版本不支持GEO语法
org.springframework.data.redis.RedisSystemException: Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR unknown command 'GEOADD'
3.只有junit测试用例,没有实现前端功能
猜你喜欢
- Spring Cache标注实现对Redis缓存数据的增删改查的简单实例
- Redis海量数据java测试代码
- Spring MVC+Freemarker+Bootstrap整合实现spring-data-redis增删改查的入门学习实例
- redis-cli pipe方式导入mysql sql查询导出的redis Protocol格式数据
- 基于mysql binlog的redis/elasticsearch数据同步中间件
- ssm使用redis做为spring+spring MVC+mybatis整合的二级缓存
- ssm使用redis做为spring+spring MVC+mybatis整合的二级缓存,基于maven搭建
- 采用Keepalived实现Redis双机高可用
- java web网页版redis客户端工具
- iptables禁止外网访问redis server服务默认端口6379的命令
- spring boot+redis实现共享java servlet session对象
- redis+nodejs的数据获取
请下载代码后再发表评论
文件名:redis-geo.zip,文件大小:76.416K
下载
- /
- /READ.md
- /mvnw
- /mvnw.cmd
- /pom.xml
- /src
- /src/main
- /src/main/java
- /src/main/java/com
- /src/main/java/com/example
- /src/main/java/com/example/redisgeo
/src/main/java/com/example/redisgeo/RedisGeoApplication.java
- /src/main/java/com/example/redisgeo/bean
- /src/main/java/com/example/redisgeo/service
/src/main/java/com/example/redisgeo/service/IGeoService.java
- /src/main/java/com/example/redisgeo/service/impl
- /src/main/java/com/example/redisgeo
- /src/main/java/com/example
- /src/main/java/com
- /src/main/java
- /src/test
- /src/test/java
- /src/test/java/com
- /src/test/java/com/example
- /src/test/java/com/example/redisgeo
- /src/test/java/com/example
- /src/test/java/com
- /src/test/java
- /src/main

- 证 Spring Boot创建自定义Banner.txt实例
- 证 Spring Boot配置@Profile注解加载不同环境的配置文件实例
- 证 Spring Boot Actuator 2.3.4.RELEASE新版本实现自定义端点信息的配置实例
- 原证 spring AOP 过滤器 拦截器 执行顺序示例
- 证 spring boot使用不指定Maven parent pom来创建可执行的spring boot项目
- 证 Spring Boot整合thymeleaf做为显示层的hello world实例
- 证 Spring Boot整合SpringFox Swagger2实现REST API增删改查项目实例
- 证 Spring Boot演示@ConfigurationProperties标注实现自定义配置属性的实例
- 证 Spring Boot整合Ehcache的简单入门实例
- 原证 springboot+sqlite3+iceEditor开发网页版记事本
- 原证精 SpringBoot+Maven+Echarts实现实时展示CPU内存硬盘性能
- 原证 Swagger的简单案例,适合初级者学习使用
