spring-projects / spring-data-cassandra

Provides support to increase developer productivity in Java when using Apache Cassandra. Uses familiar Spring concepts such as a template classes for core API usage and lightweight repository style data access.
https://spring.io/projects/spring-data-cassandra/
Apache License 2.0
374 stars 310 forks source link

spring.data.cassandra.contact-points is ignored #1360

Closed neshkeev closed 1 year ago

neshkeev commented 1 year ago

What I did

My spring-data-cassandra application was built on top of the 2.7.3 version of Spring Boot, I decided to migrate to 3.0.4 and I discovered that spring.data.cassandra.contact-points is ignored and the application connects to 127.0.0.1:9042 regardless if I changed the value of the setting or not

How to reproduce the problem

  1. Clone the project
  2. Replace 2.7.3 with 3.0.4 here
  3. Run mvn test

The app will start a testcontainers Cassandra container first and then with the help from DynamicProperties amends the spring.data.cassandra.contact-points with the host and port from the started container.

What is expected

The spring.data.cassandra.contact-points config is honored and the app connects to the node that is set in this config

mp911de commented 1 year ago

This is a Spring Boot topic. Please file your ticket at https://github.com/spring-projects/spring-boot/issues.