Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Where people put "-Dhttp.proxyHost=your.proxy.net -Dhttp.proxyPort=8080" on IntelliJ?

My Spring Boot application uses RestTemplate to make HTTP requests. But because it works on a corporate network it doesn’t have direct access to the internet. It needs to use proxy. I have set a proxy into my IntelliJ but I guess RestTemplate doesn’t use IntelliJ’s proxy settings. I think I can use this method but I have no idea where to put it. My question is where should I set -Dhttp.proxyHost=your.proxy.net -Dhttp.proxyPort=8080?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Click your run target, then "Edit configurations". Under "Modify options" (blue text) click "Add VM options", then add the parameter to the new field that appears.

No, I don’t know why they hid it away like that either. It used to be always available, much easier.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading