Revision 56761
Added by Ioannis Diplas over 4 years ago
Config.java | ||
---|---|---|
24 | 24 |
|
25 | 25 |
private static Logger LOGGER = Logger.getLogger(Config.class); |
26 | 26 |
|
27 |
@Value("${redis.host:194.177.192.121}")
|
|
27 |
@Value("${redis.host}") |
|
28 | 28 |
private String host; |
29 | 29 |
|
30 | 30 |
@Value("${redis.port:6379}") |
... | ... | |
38 | 38 |
|
39 | 39 |
@PostConstruct |
40 | 40 |
private void init(){ |
41 |
LOGGER.info(host);
|
|
41 |
LOGGER.info(String.format("Redis : %s Port : %s Password : %s",host,port,password));
|
|
42 | 42 |
} |
43 | 43 |
|
44 | 44 |
@Bean |
45 |
JedisConnectionFactory connectionFactory() { |
|
45 |
public JedisConnectionFactory connectionFactory() {
|
|
46 | 46 |
LOGGER.info(String.format("Redis : %s Port : %s Password : %s",host,port,password)); |
47 | 47 |
JedisConnectionFactory jedisConnectionFactory = new JedisConnectionFactory(); |
48 | 48 |
jedisConnectionFactory.setHostName(host); |
49 | 49 |
jedisConnectionFactory.setPort(Integer.parseInt(port)); |
50 |
jedisConnectionFactory.setUsePool(true); |
|
50 | 51 |
if(password != null) jedisConnectionFactory.setPassword(password); |
51 | 52 |
return jedisConnectionFactory; |
52 | 53 |
} |
Also available in: Unified diff
Triggering validation job from provide on Interface Update and Interface Add