Redis – Spring boot Cacheable annotation with JPA entity
I'm trying to caching jpa entity to redis through @Cacheable annotation. [RedisConfig.class] @Configuration public class RedisConfig { @Value("${spring.redis.host}") private String host; @Value("${spring.redis.port}") private int port; @Bean public RedisConnectionFactory redisConnectionFactory() { return new LettuceConnectionFactory(host, port); } @Bean public RedisTemplate<?, ?> redisTemplate()…