简体   繁体   English

Spring Boot CLI设置代理

[英]Spring boot CLI settings proxy

I installed Spring boot CLI on Windows 7 but, I use a proxy. 我在Windows 7上安装了Spring boot CLI,但是我使用代理。 I would like to know how to configure proxy with Spring boot. 我想知道如何使用Spring Boot配置代理。 I set the variable JAVA_OPTS with -Dhttp.proxyHost=proxyhostURL and -Dhttp.proxyPort=proxyPortNumber but I have received the message : "startup failed : General error during connection ..." after the command "spring run myscript.groovy". 我使用-Dhttp.proxyHost = proxyhostURL和-Dhttp.proxyPort = proxyPortNumber设置了变量JAVA_OPTS,但是在命令“ spring run myscript.groovy”之后收到了消息:“启动失败:连接期间出现一般错误...”。 I use jdk 1.7.0_51 and spring boot 1.0.0RC3. 我使用jdk 1.7.0_51和spring boot 1.0.0RC3。

Thanks in advance ! 提前致谢 !

It looks like a known bug and there's a fix on github 它看起来像一个已知的错误,并且在github上一个修复程序

Not sure if it's released yet tho... 不确定是否已发布...

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

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