Update README.md

pull/1639/head
Nikita Koksharov 7 years ago committed by GitHub
parent 26074a4ba8
commit 196b94d9da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -79,17 +79,12 @@ Usage
@Bean @Bean
public RedissonConnectionFactory redissonConnectionFactory(RedissonClient redisson) { public RedissonConnectionFactory redissonConnectionFactory(RedissonClient redisson) {
return new RedissonTransactionManager(redisson); return new RedissonConnectionFactory(redisson);
} }
@Bean @Bean(destroyMethod = "shutdown")
public RedissonClient redisson() { public RedissonClient redisson() {
return BaseTest.createInstance(); return BaseTest.createInstance();
} }
@PreDestroy
public void destroy() {
redisson().shutdown();
}
} }
``` ```

Loading…
Cancel
Save