Unable to connect to the remote server [curl] in Spring Boot.

huangapple go评论76阅读模式
英文:

Unable to connect to the remote server [curl] in spring boot

问题

这是引导系统启动的开始。只需按照提供的文档 https://spring.io/guides/gs/spring-boot-for-azure/ 中的过程进行操作。

我遇到以下错误:

>  curl : 无法连接到远程服务器
>     在行:1 字符:1
>     + curl http://localhost:8080
>     + ~~~~~~~~~~~~~~~~~~~~~~~~~~
>         + CategoryInfo          : InvalidOperation: (System.Net.HttpWebR 
>        equest:HttpWebRequest) [Invoke-WebRequest], WebException
>         + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsof  
>        t.PowerShell.Commands.InvokeWebRequestCommand
英文:

This is the start up of the boot system. just following up the process through the documentation provided at https://spring.io/guides/gs/spring-boot-for-azure/.

I'm getting the error as below;

> curl : Unable to connect to the remote server
> At line:1 char:1
> + curl http://localhost:8080
> + ~~~~~~~~~~~~~~~~~~~~~~~~~~
> + CategoryInfo : InvalidOperation: (System.Net.HttpWebR
> equest:HttpWebRequest) [Invoke-WebRequest], WebException
> + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsof
> t.PowerShell.Commands.InvokeWebRequestCommand

答案1

得分: 1

发现了答案

>> ./mvnw spring-boot:run

将连接到远程服务器。

刚刚发布,因为有人可能需要帮助。

英文:

Found the answer

>> ./mvnw spring-boot:run

will connect to the remote server.

Just posted, cause some one may need help on this

huangapple
  • 本文由 发表于 2020年8月12日 11:56:30
  • 转载请务必保留本文链接:https://go.coder-hub.com/63369537.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定