These are chat archives for spring-cloud/spring-cloud

22nd
Jan 2019
Bambus
@vlatk0o
Jan 22 10:57
Why Spring Boot @RefreshScope does not change the datasource?
Gilles Robert
@ask4gilles
Jan 22 11:53
@vlatk0o If it's not a HikariDatasource, you have to specify spring.cloud.refresh.extra-refreshable=javax.sql.DataSource
Bambus
@vlatk0o
Jan 22 12:21
@ask4gilles For example I want to change spring.data.cassandra.keyspace-name in runtime. I added @RefreshScope in the main class, and when I make changes in application.properties (setting another name for keyspace) and sending POST request to actuator/refresh it shows that there is change but the keyspace is not created...
I have tried the same thing with H2 database
I have changed: spring.datasource.url but still the same
Gilles Robert
@ask4gilles
Jan 22 12:31
@vlatk0o I tought it was a javax.sql.DataSource... No idea how it works for Cassandra, sorry
Bambus
@vlatk0o
Jan 22 12:35
@ask4gilles Okay, thank you anyway ^_^
Bambus
@vlatk0o
Jan 22 15:21
Anyone else with similar experience?
choubani amir
@amirensit
Jan 22 16:24
hello.
if ribbon.ConnectTimeout and ribbon.ReadTimeout are not specified, what are the default values ?