Skip to content

Commit 8890660

Browse files
tszmytkasnicoll
authored andcommitted
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
1 parent 9ef9b63 commit 8890660

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/cassandra/CassandraReactiveDataAutoConfiguration.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public ReactiveSession reactiveCassandraSession(CqlSession session) {
5555
}
5656

5757
@Bean
58+
@ConditionalOnMissingBean
5859
public ReactiveSessionFactory reactiveCassandraSessionFactory(ReactiveSession reactiveCassandraSession) {
5960
return new DefaultReactiveSessionFactory(reactiveCassandraSession);
6061
}

0 commit comments

Comments
 (0)