I have developed config server using spring.
My Application.java is
@EnableConfigServer
@SpringBootApplication
public class SpringConfigServerApplication {
public static void main(String[] args) {
SpringApplication.run(SpringConfigServerApplication.class, args);
}}
My bootstrap.properties file
#Server port
server.port = 8888
#Git repo location
spring.cloud.config.server.git.uri=file://Users/dineth/Documents/MyProjects/sample-git-sources/config-server-repo
My config-server-client-development.properties file
msg = Hello world - this is from config server – Development environment.
I have tiggered git init, git add and git commit commands to add my file to local git.
But when I run the app and go to http://localhost:8888/client-config/development
It does not show my property value.
// 20200406064430
// http://localhost:8888/client-config/development
{
"name": "client-config",
"profiles": [
"development"
],
"label": null,
"version": "4f989b109d1e6d77c8f44a664b275305ddddf014",
"state": null,
"propertySources": [
]
}
And Application log says:
WARN 2125 --- [nio-8888-exec-2] .c.s.e.MultipleJGitEnvironmentRepository : Could not merge remote for master remote: null
Did I miss anything?
I'm using macOS