久久r热视频,国产午夜精品一区二区三区视频,亚洲精品自拍偷拍,欧美日韩精品二区

您的位置:首頁技術文章
文章詳情頁

java Spring Boot 配置redis pom文件操作

瀏覽:3日期:2022-08-29 08:53:56

1.創建一個redis maven項目,在pom中添加如下信息

spring boot 版本

<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.4.RELEASE</version></parent>

項目相關jar配置

<dependencies> <!-- 熱開發注解 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> </dependency> <!--redis jar--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> </dependencies>

補充知識:Java中使用redis所需要的pom依賴

我就廢話不多說了,大家還是直接看代碼吧~

<dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> <version>2.1.0</version></dependency><dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> <version>3.3.2</version></dependency>

以上這篇java Spring Boot 配置redis pom文件操作就是小編分享給大家的全部內容了,希望能給大家一個參考,也希望大家多多支持好吧啦網。

標簽: Java
相關文章:
主站蜘蛛池模板: 杨浦区| 洛浦县| 宁乡县| 望奎县| 吴川市| 图木舒克市| 邳州市| 那曲县| 高州市| 义乌市| 马公市| 潢川县| 海伦市| 玉树县| 赤水市| 准格尔旗| 吴忠市| 敦化市| 平凉市| 七台河市| 遂川县| 沐川县| 荃湾区| 建昌县| 来安县| 通渭县| 太白县| 温宿县| 玛曲县| 潼南县| 忻城县| 开平市| 漳平市| 竹溪县| 昌图县| 贵南县| 泰州市| 普洱| 防城港市| 潞城市| 萨嘎县|