springboot使用Redis缓存
1.导入Maven依赖 2.添加redis配置类 3.添加springboot缓存注解 一般用第一种 (1)缓存@Cacheable 根据方法对其返回结果进行缓存,下次请求时,如果缓 ...
1.导入Maven依赖 2.添加redis配置类 3.添加springboot缓存注解 一般用第一种 (1)缓存@Cacheable 根据方法对其返回结果进行缓存,下次请求时,如果缓 ...