springboot使用Redis緩存 1.導入Maven依賴 2.添加redis配置類 3.添加springboot緩存注解 一般用第一種 (1)緩存@Cacheable 根據方法對其返回結果進行緩存,下次請求時,如果緩 ...