Bummer! You have been redirected as the page you requested could not be found.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Spring Basics!
You have completed Spring Basics!
Preview
In this video, you are tasked with creating a controller to handle requests related to categories.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
We'll need a controller for categories
that can capture requests to a URI for
0:00
all the categories and
a URI for a single category.
0:00
So, here's your next task.
0:04
Create a Category Controller with one
method [SOUND] that captures requests to
0:07
/categories and returns a String.
0:11
This method should fetch the entire
list of category objects from
0:14
an auto-wired category repository and
add it to a ModelMap.
0:17
[SOUND] Then, the method should return
the string categories to associate it
0:21
with the provided Thymeleaf Template.
0:26
Are you ready for this?
0:28
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up