• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Frits Walraven
  • Himai Minh

Spring Cloud Config Multiple Search Locations.

Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Everyone,

I am trying to learn Spring Cloud Config Server/Client setup. But more I read, the more I sink into a rabbit hole. The resources available online are good to get started with, but I am having a hard time with the complexity of what I am trying to build. So I have a few questions regarding what is doable and what is not doable! I am learning as I go!

First let me get this out of the way. I am not planning on using GIT. I will be using a local file system on Unix and run the Spring Cloud Server there.

1. To run with a file system, I need to use the profile "native". Is there a way to use dev, production etc profiles with a file system? I tried it but I keep getting the error GIT URI is needed when I start my application. I am not able to overcome this (this is probably my first major hurdle).

2. I have about six servers that will be sending requests for properties/files to Spring Cloud server. So I wanted to make six folders in the file system, and serve requests depending on where they are coming from. So I thought of making six profiles with different "spring.cloud.config.server.native.searchLocations" and maybe with a different port for each in them. Is this doable?

3. To do the above, I learned a bit about "composite" profiles. But couldn't find much examples online for it. So am I am not able to get it off the ground. Will it be helpful in what I am trying to achieve?

I have a lot more questions regarding Spring Cloud, but this is a start. Please help! I am a bit lost!
Posts: 2113
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You may need to refer to this tutorial as a quick start :
To get a wish, you need a genie. To get a genie, you need a lamp. To get a lamp, you need a tiny ad:
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic