Open utterances-bot opened 1 year ago
My config-server cannot connect to the local Git repository to read properties from it. application.properties of config-server looks like:
spring.cloud.config.server.git.uri=file:///D:/<path>/config-repo
spring.cloud.config.server.git.clone-on-start=true
spring.cloud.config.server.git.default-label=main
spring.cloud.config.server.git.search-paths={application}
spring.profiles.active=native.
But when I run my app and go to "http://localhost:8888/eserver/default" the properties are just empty so it can't read them from the git repository "D:/
The "config-repo" folder has one folder named "eserver" which has "application.properties" with some properties.
I can't understand what i do wrong.
P.S. If I use remote GitHub (with the same content of config-repo) everything works fine.
I left only
spring.cloud.config.server.git.uri=file:///D:/
And it worked
Forum - Spring Cloud
Spring Cloud Forum
https://www.springcloud.io/forum/