Home > Software design >  Spring cloud config fails to pick configuration from local file system
Spring cloud config fails to pick configuration from local file system

Time:01-27

I am trying to setup spring cloud config using local file system. However, I couldn't get it working.

Below is my application.properties file:

spring.application.name=spring-cloud-config-servers
server.port=8888
spring.profiles.active=native
spring.cloud.config.server.native.searchLocations=classpath:/config

enter image description here

Inside limits-service.properties, I have the following:

limits-service.minimum=4
limits-service.maximum=400

Once i run the server, i get the following. Please help in fixing it.

enter image description here

CodePudding user response:

It might be a simple mistake of naming?

For example, your spring application name is "limit-service" while your property files are named "limits-service" and that might be why it is not reading them.

  •  Tags:  
  • Related