Hacker News new | ask | show | jobs
by limw 2659 days ago
nice tools。 it can simulate a json response,and use spring restTemplate to access it.

@Bean public CommandLineRunner run(RestTemplate restTemplate) throws Exception { return args -> { String quote = restTemplate.getForObject( "http://www.myhome.com/", String.class); log.info(quote); }; }

1 comments

Is this a JAVA application?

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

thank you for your comment.