相关疑难解决方法(0)

引起:java.lang.IllegalStateException:您需要为git存储库配置uri

我正在开发Microservices with Spring Boot 2.0, Eureka and Spring Cloud一个参考:https://piotrminkowski.wordpress.com/2018/04/26/quick-guide-to-microservices-with-spring-boot-2-0-eureka-and-spring-cloud/.在这个例子中,我开发config-servicespring-boot-starter-parent版本2.0.4.RELEASE.

当我只是运行此代码时,我得到以下错误.没有提到设置本地git或使用远程git的步骤.有人可以指导我吗?

错误:

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
23:04:07.774 [main] ERROR o.s.boot.SpringApplication - Application run failed
org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:155)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:544)
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:762)
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:398)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:330)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1258)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1246)
    at com.prateek.ConfigServiceApplication.main(ConfigServiceApplication.java:12)
Caused by: …
Run Code Online (Sandbox Code Playgroud)

spring microservices spring-cloud

7
推荐指数
1
解决办法
5912
查看次数

标签 统计

microservices ×1

spring ×1

spring-cloud ×1