limw
Joined 8 years ago
Karma
8
Submissions
12
Member since
Aug 16
Joined 8 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); }; }
so,don't waste your time to try it.