Back-off if a custom ReactiveSessionFactory is defined

This commit makes sure that CassandraReactiveDataAutoConfiguration does
not create a reactiveCassandraSessionFactory bean if the user has
provided their own.

See gh-21769
This commit is contained in:
Tomek Szmytka 2020-06-08 21:43:23 +02:00 committed by Stephane Nicoll
parent 9ef9b63527
commit 8890660a71
1 changed files with 1 additions and 0 deletions

View File

@ -55,6 +55,7 @@ public class CassandraReactiveDataAutoConfiguration {
}
@Bean
@ConditionalOnMissingBean
public ReactiveSessionFactory reactiveCassandraSessionFactory(ReactiveSession reactiveCassandraSession) {
return new DefaultReactiveSessionFactory(reactiveCassandraSession);
}