Closed liaoya closed 7 years ago
I don't think we should make that change. Rather, can you please quote the instruction properly, e.g.
set "JAVA_OPTS=-Dhttp.proxyHost=proxy.company -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts=127.0.0.1^|localhost^|10.* -Dhttps.proxyHost=proxy.company -Dhttps.proxyPort=80 -Dhttps.nonProxyHosts=127.0.0.1^|localhost^|10.*"
(so to be clear, the first quote should be set around the complete instruction rather than only the value). Can you please try and report if that fixes your issue?
@snicoll It works. Thank you very much. I know the real problem comes from http.nonProxyHosts and https.nonProxyHosts. If I remove these two settings, it works very well.
Would springboot team can add this in its document. The proxy setting is always a challenge. Maven configuration has its own setting and the same as Gradle.
Closing in favour of PR #10727
I use springboot cli on windows, but my PC is behind a proxy, so that I set JAVA_OPTS before call spring.bat. I need escape "|" for batch file on Windows, you can refer http://www.robvanderwoude.com/escapechars.php or https://stackoverflow.com/questions/25744252/bypassing-non-proxy-hosts-in-java-opts
springboot cli fails and the error message is
I find the fix by change the line of spring.bat, use quote to surrender %JAVA_OPTS%. Now it works
to
The linux cli has no such issue.