1
votes

I created some sample spring cloud applications to use eureka and the config-server. Within a fancy-server component I'm trying to using the configuration property which is configured in the config-server in a database.yml. I'm using the Brixton.M3 release which was created via start.spring.io page.

  • Starting eureka-server seems to be fine.
  • Starting the config-server seems to be fine as well (config-server is available in eureka, checked with http://localhost:8761/eureka/apps).
  • But when I start the fancy-server which uses a property from config-server it fails with 'unresolveable property error' message.

So what's wrong? A bug in Brixton.M3?

My code is available on github: https://github.com/mirwais27/spring-cloud-evaluation

Thanks for help.

1

1 Answers

0
votes

Configure the Cloud Config Server in your fancy-server/src/main/resources/application.yml:

spring:
  application:
    name: fancyserver
  cloud:
    config:
      uri: http://localhost:8888