I'm using JDK 11 with Tomcat 9.0.52, I'd like to route my outbound requests to other host except for azure.net host. If I use the following, all requests are going to dummy.com but azure.net is not exempted.
http.proxyHost=https://dummy.com
http.proxyPort=443
https.proxyHost=https://www.dummy.com
https.proxyPort=443
http.nonProxyHosts=localhost|*.azure.net
Any leads on how to fix it?
This is how my tomcat log looks like -
23-Sep-2022 23:00:10.818 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
23-Sep-2022 23:00:10.818 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dspring.profiles.active=dev
23-Sep-2022 23:00:10.818 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dhttp.proxyHost=https://www.dummy.com
23-Sep-2022 23:00:10.818 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dhttp.nonProxyHosts=localhost|127.*|[::1]|*.azure.net