Skip to content

Commit

Permalink
Back-off if a custom ReactiveSessionFactory is defined
Browse files Browse the repository at this point in the history
This commit makes sure that CassandraReactiveDataAutoConfiguration does
not create a reactiveCassandraSessionFactory bean if the user has
provided their own.

See gh-21769
  • Loading branch information
tszmytka authored and snicoll committed Jun 10, 2020
1 parent 9ef9b63 commit 8890660
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public ReactiveSession reactiveCassandraSession(CqlSession session) {
}

@Bean
@ConditionalOnMissingBean
public ReactiveSessionFactory reactiveCassandraSessionFactory(ReactiveSession reactiveCassandraSession) {
return new DefaultReactiveSessionFactory(reactiveCassandraSession);
}
Expand Down

0 comments on commit 8890660

Please sign in to comment.