Skip to content

参数必填问题 #135

Description

@ytqiao3

当我一个controller 方法有少数入参时,我可以用 @RequestParam来标记是否必填。但是当我封装成一个入参对象的时候,这个对象的属性有的是必填有的是非必填我该怎样来标记呢

@DaTa
@EqualsAndHashCode
public class TestVO {
// 非必填
private String name;
// 必填
private Long id;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions