如何使用java连接Redis,Maven-创新互联

创新互联www.cdcxhl.cn八线动态BGP香港云服务器提供商,新人活动买多久送多久,划算不套路!

创新互联建站从2013年成立,先为镇赉等服务建站,镇赉等地企业,进行企业商务咨询服务。为镇赉企业网站制作PC+手机+微官网三网同步一站式服务解决您的所有建站问题。

这篇文章主要讲解了如何使用java连接Redis,Maven,内容清晰明了,对此有兴趣的小伙伴可以学习一下,相信大家阅读完之后会有帮助。

pom配置

<&#63;xml version="1.0" encoding="UTF-8"&#63;>
<project xmlns="http://maven.apache.org/POM/4.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 <modelVersion>4.0.0</modelVersion>
 <groupId>redis</groupId>
 <artifactId>redis</artifactId>
 <version>1.0-SNAPSHOT</version>

 <properties>
 <spring.version>5.0.2.RELEASE</spring.version>
 <maven.compiler.source>1.8</maven.compiler.source>
 <maven.compiler.target>1.8</maven.compiler.target>
 </properties>

 <dependencies>
 <dependency>
  <groupId>redis.clients</groupId>
  <artifactId>jedis</artifactId>
  <version>2.8.0</version>
 </dependency>
 <dependency>
  <groupId>junit</groupId>
  <artifactId>junit</artifactId>
  <version>4.9</version>
 </dependency>
 <!-- https://mvnrepository.com/artifact/commons-pool/commons-pool -->
 <dependency>
  <groupId>commons-pool</groupId>
  <artifactId>commons-pool</artifactId>
  <version>1.6</version>
 </dependency>
 <!-- https://mvnrepository.com/artifact/org.springframework.data/spring-data-redis -->
 <dependency>
  <groupId>org.springframework.data</groupId>
  <artifactId>spring-data-redis</artifactId>
  <version>2.0.3.RELEASE</version>
 </dependency>
 </dependencies>
</project>

本文标题:如何使用java连接Redis,Maven-创新互联
网站URL:https://www.cdcxhl.com/article22/hghjc.html

成都网站建设公司_创新互联,为您提供定制开发网站设计公司标签优化App开发网站排名ChatGPT

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联

h5响应式网站建设