Comment Comment by limw 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); }; } parent limw 7 years ago
@Bean public CommandLineRunner run(RestTemplate restTemplate) throws Exception { return args -> { String quote = restTemplate.getForObject( "http://www.myhome.com/", String.class); log.info(quote); }; }