Running the application

Now, for the most important part: running the application that we built. As it is a Spring Boot application, execute the default command as follows:

mvn spring-boot:run

Once the server has started (default Rector Netty or Tomcat), open a browser and navigate to localhost:8080/movies. We have created default routing to point to "list all movies" endpoint and if all went well, you should see the JSON which shows all the hardcoded movies in our repository class.

In this section, we have created a sample Spring WebFlux movie application. We will add the all important security to this application in the next section.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.129.218.62