July 2018
Intermediate to advanced
268 pages
7h 36m
English
We will be using the same movie model in this sample project. Since this is the only class that we need from our previous sample application, we will copy the class here. In an ideal scenario, we would have a JAR file containing all common classes, and it can be included in our pom.xml file.
Create the Run class (as seen earlier) and call the WebClient methods. The code snippet for one of the methods is as follows:
@SpringBootApplicationpublic class Run implements CommandLineRunner { @Autowired WebClientTestInterface webClient; public static void main(String[] args) { SpringApplication.run(Run.class, args); } @Override public void run(String... args) throws Exception { // get all movies System.out.println("Get ...Read now
Unlock full access