I have a simple method to get a list of documents for a given companyId. Here is the method:
companyId
@Override public List getDocumentL
To activate parameter validation, simply annotate the class with @Validated
@Validated
import org.springframework.validation.annotation.Validated;