-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Description
Spring Boot allows configuration of the most common configuration options for Cassandra driver 4 and allows customization of the session builder and DriverConfigLoader
.
Configuring additional driver config options (e.g. driver profiles, additional settings) requires quite some code to do so. It would be convenient to use the Driver's config file format for an easier configuration mechanism since the majority of configuration examples use config files as using config files is the preferred mechanism.
Ideally, a config file can be specified through a property (e.g. spring.data.cassandra.config-file
) that gets included if the property is set after defaultOverrides
and before Spring Boot's config. Doing so allows picking up the config file. It also allows overriding Cassandra settings using system properties and the specified config file may override Spring Boot's properties which aligns nicely with the typical ordering of PropertySource
s.
Reference