网络代理背后的Spring-Boot [英] Spring-Boot behind a network proxy

查看:189
本文介绍了网络代理背后的Spring-Boot的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在基于示例实现OpenID身份验证.现在,我正在网络代理后面进行开发,因此服务器无法连接到google. Java代理设置似乎没有任何作用.我还发现了这个 stackoverflow问题,但我不知道将代码放在哪里.如何为Spring Boot容器配置代理?

I am currently implementing an OpenID authentication based on this example. Now I am developing behind a network proxy, therefore the server cannot connect to google. The java proxy settings seem to not have any effect. I also found this stackoverflow question, but I cannot figure out where to put the code. How can I configure the proxy for my spring boot container?

谢谢

推荐答案

不确定这是否有什么用,但是我目前正在通过Spring Boot教程(

Not sure if this is of any use, but I'm just working through a Spring Boot tutorial currently (https://spring.io/guides/gs/integration/) and hit a similar network proxy issue. This was resolved just by providing the JVM arguments

-Dhttp.proxyHost=your.proxy.net -Dhttp.proxyPort=8080

这篇关于网络代理背后的Spring-Boot的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆