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 - 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
-
-
-
Overview of Spring MVC2m 32s
-
(Locked)
Why use Spring MVC?2m 33s
-
(Locked)
Spring MVC request processing flow2m 39s
-
(Locked)
Project development overview3m 8s
-
(Locked)
Use Spring Boot to create an MVC application6m 7s
-
(Locked)
Overview of Thymeleaf2m 56s
-
(Locked)
Set up the Collectibles app7m 10s
-
(Locked)
Set up the home page flow7m 54s
-
(Locked)
Fragment the home page into modular components6m 10s
-
(Locked)
Link HTML pages from the home page9m 8s
-
(Locked)
ViewResolvers3m 3s
-
-
-
-
-
-
-