简体   繁体   English

无法部署我的第一个 Azure Spring Cloud 应用程序

[英]Unable to deploy my first Azure Spring Cloud application

I'm trying the QuickStart to running A Spring Boot in Azure Spring Cloud https://docs.microsoft.com/en-us/azure/spring-cloud/spring-cloud-quickstart?tabs=IntelliJ&pivots=programming-language-java我正在尝试使用 QuickStart 在 Azure Spring Cloud 中运行 Spring Boot https://docs.microsoft.com/en-us/azure/spring-cloud/spring-cloud-quickstart?tabs=IntelliJ&​​pivots=programming-language-java

I download the spring starter with associated jars, but when it starts up I get a bunch of errors我下载了带有相关 jar 的 spring starter,但是当它启动时出现了一堆错误

Getting all instance registry info from the eureka server
2020-10-08 23:20:47.012 ERROR [,,,] 32573 --- [           main] c.n.d.s.t.d.RedirectingEurekaHttpClient  : Request execution error. endpoint=DefaultEndpoint{ serviceUrl='http://localhost:8761/eureka/}

com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused
    at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:187) ~[jersey-apache-client4-1.19.1.jar:1.19.1]
    at com.sun.jersey.api.client.filter.GZIPContentEncodingFilter.handle(GZIPContentEncodingFilter.java:123) ~[jersey-client-1.19.1.jar:1.19.1]
    at com.netflix.discovery.EurekaIdentityHeaderFilter.handle(EurekaIdentityHeaderFilter.java:27) ~[eureka-client-1.9.25.jar:1.9.25]

How do I stop this from happening, has anyone had luck with the Microsoft Spring Boot Quickstart?我如何阻止这种情况发生,有没有人对 Microsoft Spring Boot Quickstart 有好运?

Are you trying to run the app locally?您是否尝试在本地运行该应用程序? if that is the case this error is expected as the eureka server hosted by Azure Spring Cloud is not reachable from your dev machine.如果是这种情况,则会出现此错误,因为您的开发机器无法访问 Azure Spring Cloud 托管的 eureka 服务器。 Please deploy the app to Azure Spring Cloud.请将应用部署到 Azure Spring Cloud。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM