This workshop will be retired on May 1, 2025.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- Getting Started 5:55
- Introducing Spring Data REST 6:03
- Entities and Repositories Review 9:28
- Abstract Classes 6:48
- Populating and Relationships 15:39
- Paging 7:12
- Exploring Your API With New Tools - Postman 7:55
- Exploring Your API With New Tools - HAL Browser 3:58
- Versioning 8:52
- Validation 8:31
- Adding Users 11:51
- Adding Authentication 10:35
- Authorizing Deletions 6:56
- Events 7:57
- Wrapping Up 1:18

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
Let's validate that data we get from our users is valid and set up our API so it returns legible errors.
Note about newer versions
- If you are using the Gradle Boot plugin > 1.3 (Which I am using in this video), you might encounter an issue on startup. To resolve simply add the
@Lazy
annotation to the validator declaration like so:
@Autowired
@Lazy
private Validator validator;
Learn More
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
calebdickson
121 Points0 Answers
-
Ruud Claassen
9,359 PointsCould not autowire. There is more than one bean of 'Validator' type
Posted by Ruud ClaassenRuud Claassen
9,359 Points1 Answer
-
PLUS
Anuraag Mishra
Courses Plus Student 4,286 Points1 Answer
-
JT Keller
12,731 PointsSpring Rest API - Could Not Autowire. No beans of 'Validator' type found.
Posted by JT KellerJT Keller
12,731 Points6 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
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