Commit 439eb54a authored by duanruiming's avatar duanruiming

[update] review-代码逻辑优化

parent 0795a7fa
......@@ -112,14 +112,10 @@ public class RedisConfig extends CachingConfigurerSupport {
return new FastJson2JsonRedisSerializer(Object.class);
}
@Value("${spring.redis.host}")
private String redisHost;
@Value("${spring.redis.port}")
private Integer redisPort;
@Bean
public Jedis jedis() {
Jedis jedis = new Jedis(redisHost, redisPort);
jedis.auth("Wanji300552");
Jedis jedis = new Jedis(host, port);
jedis.auth(password);
return jedis;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment