Redis – Spring issue with @PostConstruct and @PreDestroy
I have a Spring application that I am trying to test with EmbededRedis. So I created a component like below to Initialize and kill redis after test. @Component public class EmbededRedis { @Value("${spring.redis.port}") private int redisPort; private RedisServer redisServer; @PostConstruct…