I am trying to setup spring config cloud using local file system.
Below is my config on cloud server.
server.port=8888
spring.profiles.active=native
spring.cloud.config.server.native.searchLocations=classpath:/
Bootstrap.properties on client app is as shown below
spring.application.name=hello-world
spring.cloud.config.uri=http://localhost:8888
management.endpoints.web.exposure.include=*
I have also created hello-world.yml on class path for the hello-world spring boot application with property, test: Hello World
Followed below steps to make use of config server.
Step 1: Update the config file and start cloud config server. Able to see config
http://localhost:8888/hello-world/defaultStep 2: Start client app
hello-world, client app able to read thetestproperty file from cloud config server.Step 3: Make changes to config by updating
test: Good Byeon hello-world.yaml.At this moment, if I check
http://localhost:8888/hello-world/default,it still shows old value.Step 4: Run
/actuator/refreshon client app. But it won't detect any change on config server.
The new changes are reflected only if I restart the cloud config server. Is there any configuration issue causing the cloud config server to unable to listen to changes ?
I could see o.s.cloud.commons.util.InetUtils : Cannot determine local hostname INFO log on cloud config app.