摘要: application.properties中记得启用缓存 spring.cache.type=redis 缓存的对象必须实现Serializable SpringBootApplication中要加@EnableCaching注解 @Cacheable是基于Spring AOP代理类,内部方法调用 阅读全文
posted @ 2021-07-16 10:08 豌里个豆 阅读(1195) 评论(0) 推荐(0) 编辑