SteeltoeOSS / Configuration

.NET Configuration providers for Spring Cloud Config Server & CloudFoundry
https://steeltoe.io
Apache License 2.0
101 stars 36 forks source link

How do I replace the service URI with the service ID to access the configuration center #26

Closed akaxb closed 5 years ago

akaxb commented 6 years ago

HI: I registered the configuration center as a service on eureka, image,I found that the Java client could configure the following information: image,I would also like to replace uri =localhost:8888 with service id =spring-cloud-config-server,hope your help ,thanks

cf-gitbot commented 6 years ago

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/158515172

The labels on this github issue will be updated when the story is started.

TimHess commented 6 years ago

Hello @akaxb,

Steeltoe does not currently support discovery-first bootstrapping (https://github.com/spring-cloud/spring-cloud-config/blob/master/docs/src/main/asciidoc/spring-cloud-config.adoc#discovery-first-bootstrap)

akaxb commented 6 years ago

So are there any plans for this in the future,thank you

TimHess commented 6 years ago

We have general plans to work on feature parity with the Java clients for both Config Server (https://www.pivotaltracker.com/story/show/157221158) and Eureka (https://www.pivotaltracker.com/story/show/157221134), but timelines and scope haven't been set yet - keeping this issue open (and voting if you wish) does help us to prioritize features that need to be included in those efforts

daxnet commented 6 years ago

@TimHess Hi, I am also facing the same problem right now, since my ConfigServer is also registered to Eureka. I'd like to have my ASP.NET Core app to build and inject the configuration data from ConfigServer discovered by Eureka, when the app is starting up. I found Spring Cloud does support the discovery-first bootstrapping, however it looks like it is missing from Steeltoe Configuration.

Thanks!

dtillman commented 5 years ago

@daxnet @akaxb

FYI, I have added discovery first config server client features into Steeltoe 2.2. This feature is currently in the dev feed for Steeltoe. We hope to release 2.2 by the end of 1st Qtr.

Dave