Mohammed Shirhaan
Mohammed Shirhaan

Reputation: 553

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

Upvotes: 4

Views: 3398

Answers (3)

Thiha
Thiha

Reputation: 1

Please try

spring.cloud.config.server.git.uri=D:/MicroservicesProject/git-localconfig-repo

Upvotes: 0

Abhishek Verma
Abhishek Verma

Reputation: 31

Try updating config line as follows:

spring.cloud.config.server.git.uri=file:///C:/Users/win10/Desktop/git-localconfig-repo/

Upvotes: 3

Mohammed Shirhaan
Mohammed Shirhaan

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

Related Questions