• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Spring Cloud Config Multiple Search Locations.

 
Greenhorn
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!
 
Bartender
Posts: 2266
13
  • 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 :
https://dzone.com/articles/spring-cloud-and-spring-bootimplementing-spring-cl
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic