摘要: 用“[ ]” 把key包装起来。示例: test: "[test1:test2:test3]" 阅读全文
posted @ 2023-05-11 21:27 张释文 阅读(350) 评论(0) 推荐(0) 编辑
摘要: package test.config; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxm 阅读全文
posted @ 2023-05-11 19:42 张释文 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 核心代码 spring: cache: type: REDIS redis: time-to-live: 28800000 custom-ttl: { "xxx" : "1000000", "yyy": "6000000"} @Data @Component @Configuration @Conf 阅读全文
posted @ 2023-05-11 19:37 张释文 阅读(354) 评论(0) 推荐(0) 编辑