【发布时间】:2021-08-31 07:11:25
【问题描述】:
使用 sn-ps 描述写入所有字段不是可靠的解决方案 有没有办法将模型/实体实现为具有字段和描述、约束、类型的表格。
fieldWithPath("id").description("Id of Student."),
fieldWithPath("name").description("Name of the Student."),
fieldWithPath("contact").description("Contact of the Student."),
fieldWithPath("marks").description("Marks of the Student."));
【问题讨论】:
标签: spring spring-boot parameters mockmvc spring-restdocs