摘要: 需求背景:在使用springbot cache时,发现@cacheabe不能设置缓存时间,导致生成的缓存始终在redis中。 环境:springboot 2.1.5 + redis 解决办法:利用AOP自定义注解,用SPEL来解释key表达式。 1.定义注解 package com.test.ent 阅读全文
posted @ 2019-11-27 13:34 huiy_小溪 阅读(3486) 评论(0) 推荐(1) 编辑