# Java driver configuration

**URL:** <https://forum.scylladb.com/t/java-driver-configuration/4285>\
**Category:** ScyllaDB\
**Tags:** java-driver, configuration, spring-boot\
**Created:** [December 27, 2024, 8:16pm UTC](https://forum.scylladb.com/t/java-driver-configuration/4285 "2024-12-27T20:16:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dmitry\_Vershinin](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.scylladb.com/dmitry_vershinin/32/1467_2.png) [@Dmitry\_Vershinin](https://forum.scylladb.com/u/Dmitry_Vershinin)\
**Post date:** [December 27, 2024, 8:16pm UTC](https://forum.scylladb.com/t/java-driver-configuration/4285/1 "2024-12-27T20:16:31Z")

</div>

When i try to use application.conf file in my spring boot application for customize e.g contact-points there is no effect. It seems that application.conf doesnt load…But if i use application.yaml with contact-points its work

java driver version 4.15.0  
spring boot v3.1.2

application.conf in src/main/resources:  
datastax-java-driver {  
basic.contact-points = [10.72.63.81,10.72.63.82,10.72.63.83]  
}

---

<div class="post-metadata">

**Author:** ![Bouncheck](https://avatars.discourse-cdn.com/v4/letter/b/b5a626/32.png) [@Bouncheck](https://forum.scylladb.com/u/Bouncheck)\
**Post date:** [December 31, 2024, 2:22am UTC](https://forum.scylladb.com/t/java-driver-configuration/4285/2 "2024-12-31T02:22:29Z")

</div>

Hi Dmitry,

I don’t have experience with building Spring applications, so it’s hard for me to say what could be going wrong here without seeing the application. If my understanding is correct `application.yml` is a configuration file for the spring application and `application.conf` is the usual Typesafe config that should be picked up by the driver. It should be possible to pass driver configuration both ways, but using different formats.

First, it seems that the format you’re using for your application.conf is slightly wrong. Perhaps this is why the driver rejects those contact points. Each address should be of the “host:port” format.  
Basically this:

```auto
datastax-java-driver {
basic.contact-points = ["192.168.1.2:9042","192.168.1.3:9042", "192.168.1.4:9042"]
}

```

I tried setting up example application with such application.conf and I’ve had no issues customizing the contact points. I’ve put it in src/main/resources too.  
Another issue you may be facing is that one of the configs overwrites what another says. Make sure that you define contact points only in one of them and also not in any extra environment variables.
