rest and validation examples on spring