Open raman-khrapavitski opened 7 years ago
Are you trying to run multiple applications in one jvm, one of them being config server?
Yeah, that's right.
Config server wasn't built to support that model, so it doesn't surprise me that it doesn't work.
I have a question this case, what do see as "embedded config server" mode. Do you mean that embed configuration server into some spring boot application can't provide configuration to that application and provides configuration REST service only for other applications in network? Thx
Hmm, it seems that is. Waiting for official comment.
It's meant to read configuration for a single application in embedded mode, not multiple.
I use Spring cloud config 1.2.1 Java 1.8.92 And Windows OS
I try to embed spring cloud config in my spring boot application (spring cloud config server and other spring boot applications are part of the core), but it looks like my other applications, can't get properties from spring cloud.
Here the stacktrace, which I get when application start:
Here my boostrap.properties file:
I try to get properties via postman and looks like config server works fine.
Also when I added this system property:
System.setProperty(spring.cloud.config.name, child.appName)
to application builder, application have worked fine.Test project is here embeddedconfig.zip
Thank you, Raman