This small Spring boot project demonstrates how to use annotations to validate an object's properties (in this case username, email). It also showcases how to use Rest controllers and implement tests for different responses.
This code answers the following Stack Overflow question: issue-with-spring-boot-validation-with-version