Skip to content

Commit ac7320d

Browse files
committed
Document that Cassandra's application.conf is not considered
Closes gh-21787
1 parent 1896566 commit ac7320d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4658,8 +4658,14 @@ If the port is the same for all your contact points you can use a shortcut and o
46584658
TIP: Those two examples are identical as the port default to `9042`.
46594659
If you need to configure the port, use `spring.data.cassandra.port`.
46604660

4661-
You can also register an arbitrary number of beans that implement `DriverConfigLoaderBuilderCustomizer` for more advanced driver customizations.
4661+
[NOTE]
4662+
====
4663+
The Cassandra driver has its own configuration infrastructure that loads an `application.conf` at the root of the classpath.
4664+
4665+
Spring Boot does not look for such a file and rather provides a number of configuration properties via the `spring.data.cassandra.*` namespace.
4666+
For more advanced driver customizations, you can register an arbitrary number of beans that implement `DriverConfigLoaderBuilderCustomizer`.
46624667
The `CqlSession` can be customized with a bean of type `CqlSessionBuilderCustomizer`.
4668+
====
46634669

46644670
NOTE: If you're using `CqlSessionBuilder` to create multiple `CqlSession` beans, keep in mind the builder is mutable so make sure to inject a fresh copy for each session.
46654671

0 commit comments

Comments
 (0)