- 博客(1)
- 资源 (1)
- 收藏
- 关注
转载 Spring Boot 使用Redis作为默认缓存,那么如何自定义过期 ?
其实注解支持配置过期时间. @Cacheable(value = "people#${select.cache.timeout:1800}#${select.cache.refresh:600}", key = "#person.id", sync = true)//3public Person findOne(Person person) { Person p = personR...
2018-12-06 11:15:04 719
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人