Skip to content

Commit f4ff090

Browse files
authored
Merge pull request #49 from wreulicke/feature/update-spring-boot
Update spring boot
2 parents bbcf86e + 905a408 commit f4ff090

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# dependency versions
2-
springBootVersion = 2.0.6.RELEASE
2+
springBootVersion = 2.1.0.RELEASE
33
springSecurityOauth2Version = 2.2.1.RELEASE
44
awsJavaSdkVersion = 1.11.233
55

6-
lombokVersion = 1.16.18
6+
lombokVersion = 1.18.2
77
baseunitsVersion = 2.14
88

99
junitVersion = 4.12
1010
hamcrestVersion = 1.3
11-
mockito.version = 2.19.0
11+
mockito.version = 2.23.0

spar-wings-ratelimiter/src/test/java/jp/xet/sparwings/spring/web/ratelimiter/RedisRateLimitServiceTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
import lombok.extern.slf4j.Slf4j;
2929

30+
import org.springframework.data.redis.connection.RedisStandaloneConfiguration;
3031
import org.springframework.data.redis.connection.jedis.JedisConnectionFactory;
3132
import org.springframework.data.redis.core.RedisCallback;
3233
import org.springframework.data.redis.core.RedisTemplate;
@@ -60,10 +61,9 @@ public class RedisRateLimitServiceTest {
6061

6162
@Before
6263
public void setUp() throws Exception {
63-
JedisConnectionFactory jedisConnectionFactory = new JedisConnectionFactory();
64-
jedisConnectionFactory.setHostName("localhost");
65-
jedisConnectionFactory.setPort(6379);
66-
jedisConnectionFactory.setDatabase(5);
64+
RedisStandaloneConfiguration configuration = new RedisStandaloneConfiguration("localhost", 6379);
65+
configuration.setDatabase(5);
66+
JedisConnectionFactory jedisConnectionFactory = new JedisConnectionFactory(configuration);
6767
jedisConnectionFactory.afterPropertiesSet();
6868
RedisTemplate<String, Long> redisTemplate = new RedisTemplate<>();
6969
redisTemplate.setKeySerializer(new StringRedisSerializer());

0 commit comments

Comments
 (0)