spring cloud应用程序属性git uri

时间:2017-12-12 10:55:05

标签: spring git spring-cloud

我正在用git设置spring cloud。我在C:\ git \ TestGit下有一个git存储库,它用git存储库克隆

  

https://github.com/amhg/TestGit.git

在C:\ git \ TestGit下,我有.git文件和README.md文件

在我的IDE中,我添加了

> server.port=9000    
> spring.cloud.config.server.git.uri=${HOME}/git/TestGit

我运行应用程序并尝试在浏览器中查看结果,但是我收到了此错误

Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

> Tue Dec 12 11:38:26 CET 2017 There was an unexpected error (type=Not
> Found, status=404). Cannot clone or checkout repository:
> ${HOME}/git/TestGit

如何成为spring.cloud.config.server.git.uri路径?

或者我错过了什么?

项目结构 enter image description here

0 个答案:

没有答案