Reputation: 553
I am trying to set up Spring Cloud Config Server. How to give the spring.cloud.config.server.git.uri in application.properties for Windows?
The uri is this one D:\MicroservicesProject\git-localconfig-repo\test-service.properties
I tried this
spring.cloud.config.server.git.uri=D:\\MicroservicesProject\\git-localconfig-repo\\limits-service.properties
But I am getting this error
Caused by: org.eclipse.jgit.errors.TransportException: D:\MicroservicesProject\git-localconfig-repo\limits-service.properties: not a bundle
Upvotes: 4
Views: 3398
Reputation: 1
Please try
spring.cloud.config.server.git.uri=D:/MicroservicesProject/git-localconfig-repo
Upvotes: 0
Reputation: 31
Try updating config line as follows:
spring.cloud.config.server.git.uri=file:///C:/Users/win10/Desktop/git-localconfig-repo/
Upvotes: 3
Reputation: 553
I found the solution by making the path to the directory without specifying the name of the file.
D:\\MicroservicesProject\\git-localconfig-repo
Upvotes: 2