随笔分类 - redis
摘要:public Result sendCode(@PathVariable String phone){ //从redis中获取验证码,如果获取到,返回ok //redis的key为手机号 value为验证码 String code = redisTemplate.opsForValue().get(
阅读全文
摘要:引入依赖 <!-- redis --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> <!-
阅读全文
摘要:1.redis下载 https://github.com/tporadowski/redis/releases 解压后目录结构 2. Redis配置系统环境变量 右键此电脑->属性||打开设置->系统->关于,高级系统设置->环境变量,选中系统变量Path点击"编辑",弹出的窗口点击"新建",输入R
阅读全文