# springboot-redis **Repository Path**: chen1007/springboot-redis ## Basic Information - **Project Name**: springboot-redis - **Description**: 实现springboot整合redis - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-03-10 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # springboot-redis #### 介紹 实现springboot整合redis #### 架構 JDK 1.8.0 + Maven 3.0 + Redis 2.4.2 SpringBoot 2.1.1 #### 安裝教程 1. 搭建版本控制父工程 2. 搭建子模块common工程 3. 搭建service模块工程 #### 使用說明 启用项目,调用接口 1.端口:8080(默认端口。具体可以根据自己的喜好,在 application.properties 配置文件中配置 server.port) 2.添加数据到 Redis 接口(没有设置失效时间):http://localhost:8080/user/addUser 3.添加数据到 Redis 接口(并且设置失效时间):http://localhost:8080/user/addUserAndExpire 4.从 Redis 中获取数据:http://localhost:8080/user/getUser 5.从 Redis 中获取数据失效时间:http://localhost:8080/user/getExpire 6.删除 Redis 中的数据:http://localhost:8080/user/deleteUser #### 參與貢獻 1. Fork 本倉庫 2. 新建 Feat_xxx 分支 3. 提交程式碼 4. 新建 Pull Request #### 碼雲特技 1. 使用 Readme\_XXX.md 來支持不同的語言,例如 Readme\_en.md, Readme\_zh.md 2. 碼雲官方部落格 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 這個地址來瞭解碼雲上的優秀開源項目 4. [GVP](https://gitee.com/gvp) 全稱是碼雲最有價值開源項目,是碼雲綜合評定出的優秀開源項目 5. 碼雲官方提供的使用手冊 [https://gitee.com/help](https://gitee.com/help) 6. 碼雲封面人物是一檔用來展示碼雲會員風采的欄目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)