@Bean public CommandLineRunner run(RestTemplate restTemplate) throws Exception { return args -> { String quote = restTemplate.getForObject( "http://www.myhome.com/", String.class); log.info(quote); }; }
For JAVA applications you need to add WebTools certificate to JAVA root certificates store.
You can find WebTools certificate here: C:\Users\[username]\Documents\WebTools\Cert\SSL
Please check this article for more information: https://www.httpdebugger.com/help/java.html
@Bean public CommandLineRunner run(RestTemplate restTemplate) throws Exception { return args -> { String quote = restTemplate.getForObject( "http://www.myhome.com/", String.class); log.info(quote); }; }