Skip to content

Allow configuring Cassandra configuration file #24065

@mp911de

Description

@mp911de

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 PropertySources.

Reference

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions