Fix deprecation warnings
This commit is contained in:
@@ -468,9 +468,7 @@ public class RedisOperationsSessionRepositoryITests extends AbstractITests {
|
|||||||
static class Config {
|
static class Config {
|
||||||
@Bean
|
@Bean
|
||||||
public JedisConnectionFactory connectionFactory() throws Exception {
|
public JedisConnectionFactory connectionFactory() throws Exception {
|
||||||
JedisConnectionFactory factory = new JedisConnectionFactory();
|
return new JedisConnectionFactory();
|
||||||
factory.setUsePool(false);
|
|
||||||
return factory;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
|
|||||||
@@ -113,9 +113,7 @@ public class EnableRedisHttpSessionExpireSessionDestroyedTests<S extends Session
|
|||||||
static class Config {
|
static class Config {
|
||||||
@Bean
|
@Bean
|
||||||
public JedisConnectionFactory connectionFactory() throws Exception {
|
public JedisConnectionFactory connectionFactory() throws Exception {
|
||||||
JedisConnectionFactory factory = new JedisConnectionFactory();
|
return new JedisConnectionFactory();
|
||||||
factory.setUsePool(false);
|
|
||||||
return factory;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
|
|||||||
@@ -31,8 +31,6 @@ import org.springframework.session.data.redis.config.annotation.web.http.EnableR
|
|||||||
public class RedisHttpSessionConfig {
|
public class RedisHttpSessionConfig {
|
||||||
@Bean
|
@Bean
|
||||||
public JedisConnectionFactory connectionFactory() throws Exception {
|
public JedisConnectionFactory connectionFactory() throws Exception {
|
||||||
JedisConnectionFactory factory = new JedisConnectionFactory();
|
return new JedisConnectionFactory();
|
||||||
factory.setUsePool(false);
|
|
||||||
return factory;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -103,9 +103,7 @@ public class RedisListenerContainerTaskExecutorITests {
|
|||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
JedisConnectionFactory connectionFactory() throws Exception {
|
JedisConnectionFactory connectionFactory() throws Exception {
|
||||||
JedisConnectionFactory factory = new JedisConnectionFactory();
|
return new JedisConnectionFactory();
|
||||||
factory.setUsePool(false);
|
|
||||||
return factory;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
|
|||||||
Reference in New Issue
Block a user