From the course: Spring Web MVC 6

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Set up the home page flow

Set up the home page flow - Spring Tutorial

From the course: Spring Web MVC 6

Set up the home page flow

- [Instructor] Now that we have our project configured correctly, let's start building the first use case of this website which is creating the homepage flow. I have the 01_08e branch that has been checked out. Let's start making the changes. I have steps listed on a PowerPoint slide so that it makes it easy for us to follow. The first step is to create a HomeController class in a package. So let's head over to the IDE and under the java folder, under the package com.linkedin.collectibles, I will make one more package, which is for controllers. So this package will hold all the Controller classes that we write with Spring MVC for this app. Under that, let's create a class and let's call it HomeController. Let's add this. In order to mark this class as controller, we need to annotate it correctly with the @Controller annotation that comes from org.springframework.stereotype package. The next step is to add a method…

Contents