Spring缓存复杂的对象,如对象列表

我想使用Spring Cache存储自定义对象的映射。 我有一个如下的accountKey类

public class accountKey {
    private String accountNumber;
    private Date date;
}
我想用作键的

。而List<Transaction>是地图的值。

因此,我要缓存的数据将像Map<accountKey,List<Transaction>>这样。

有人可以指导我吗?

我已经看过How to cache a complex object such as Map<String,List<Car>> in a Spring Boot app

hui3636 回答:Spring缓存复杂的对象,如对象列表

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/2682139.html

大家都在问