Javax @NotNull annotation usage

后端 未结 4 383
隐瞒了意图╮
隐瞒了意图╮ 2021-01-17 12:49

I have a simple method to get a list of documents for a given companyId. Here is the method:

@Override
public List getDocumentL         


        
4条回答
  •  广开言路
    2021-01-17 13:24

    To activate parameter validation, simply annotate the class with @Validated

    import org.springframework.validation.annotation.Validated;
    

提交回复
热议问题