还没有用到rabittmq

    @RequestMapping("/getYZM/{phone}")
public Object getYZM(@PathVariable String phone){
if(redisTemplate.hasKey(phone)) {
redisTemplate.delete(phone);
}
String yzm = MessageUtil.creatYZM();
redisTemplate.opsForValue().set(phone, yzm);
System.out.println("我获得的缓存是"+redisTemplate.opsForValue().get(phone));
return yzm; }
05-26 17:26