Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to give the uri in windows for Spring Cloud Config with Local Git repo?

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
like image 580
Mohammed Shirhaan Avatar asked Nov 05 '25 11:11

Mohammed Shirhaan


1 Answers

Try updating config line as follows:

spring.cloud.config.server.git.uri=file:///C:/Users/win10/Desktop/git-localconfig-repo/
like image 77
Abhishek Verma Avatar answered Nov 07 '25 10:11

Abhishek Verma