我正在尝试使用 spring-boot-data-cassandra:3.1.3 和 spring-boot-autoconfigure:2.4.2 从我的 Spring boot 应用程序连接到 Cassandra。
我的 Cassandra 集群在 Cassandra 端启用了 SSL。因此,当我自动配置启用 SSL 的 Cassandra 连接(通过设置spring.data.cassandra.ssl=true
)时,系统会为我创建默认 SSL 上下文,但我需要提供我的信任库路径和信任库密码来初始化SSLContext
。没有提供data-cassandra
像为 kafka( spring.kafka.ssl.truststore-location= # Location of the trust store file.
spring.kafka.ssl.truststore-password= # Store password for the trust store file.
) 提供的属性,因此是否有任何方法可以为我的 Cassandra 配置提供信任库文件位置和密码,AutoConfigure
或者覆盖SSLContext
为指定版本创建的默认设置。