Closed Cvetomird91 closed 5 years ago
spring-web
is the module from the Spring Framework that contains RestTemplate
, which is used in the guide:
@Bean
public CommandLineRunner run(RestTemplate restTemplate) throws Exception {
return args -> {
Quote quote = restTemplate.getForObject(
"http://gturnquist-quoters.cfapps.io/api/random", Quote.class);
log.info(quote.toString());
};
}
Hello,
There's a typo in the Maven import in the Maven file:
The "boot" package is missing here.