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 repository for your `Category` objects.
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
That brings us to your next task.
0:00
Code a CategoryRepository class that
is marked as a spring component.
0:03
And includes a private list
of three sample categories.
0:08
Using whatever integers you want as IDs,
and named whatever you'd like.
0:11
While you're in there, add a public method
that returns a list of all categories.
0:17
Now that you have your task,
give this one a whirl.
0:23
If you get stuck, try following the same
pattern as your gif repository class.
0:26
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