Şöyle yaparız
@Configurationclass MyCachingConfiguration {@BeanRedisCacheManager cacheManager() {// ...}@BeanHazelcastCacheManager hazelcastCacheManager() {// ...}@BeanCompositeCacheManager compositeCacheManager(RedisCacheManager redis,HazelcastCacheManager hazelcast) {return new CompositeCacheManager(redis, hazelcast);}}
Hiç yorum yok:
Yorum Gönder