Ken*_*avR 7 java proxy spring spring-security spring-boot
我目前正在基于此示例实现OpenID身份验证.现在我在网络代理后面开发,因此服务器无法连接到谷歌.Java代理设置似乎没有任何影响.我也发现了这个 stackoverflow问题,但我无法弄清楚将代码放在何处.如何为spring boot容器配置代理?
谢谢
t_b*_*rbz 17
不确定这是否有用,但我现在只是通过Spring Boot教程(https://spring.io/guides/gs/integration/)并遇到类似的网络代理问题.这只是通过提供JVM参数来解决的
-Dhttp.proxyHost=your.proxy.net -Dhttp.proxyPort=8080
Run Code Online (Sandbox Code Playgroud)
仅添加两个提供的参数对我不起作用.这样做的完整清单是这样的:
-Dhttp.proxyHost=somesite.com -Dhttp.proxyPort=4321
-Dhttps.proxyHost=somesite.com -Dhttps.proxyPort=4321 -Dhttps.proxySet=true
-Dhttp.proxySet=true
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
26448 次 |
最近记录: |