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:
parent
9ef9b63527
commit
8890660a71
|
@ -55,6 +55,7 @@ public class CassandraReactiveDataAutoConfiguration {
|
|||
}
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean
|
||||
public ReactiveSessionFactory reactiveCassandraSessionFactory(ReactiveSession reactiveCassandraSession) {
|
||||
return new DefaultReactiveSessionFactory(reactiveCassandraSession);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue