代码配置:
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class Test{
private boolean isCommit;
}
postman 测试时传参示范:
{
"isCommit": true --错误示范
"commit": true--正确示范
}
本文介绍了一种在使用Postman进行API测试时正确的参数传递方式,纠正了一个常见错误,并展示了如何通过修改请求体来实现更有效的测试。了解这些技巧对于提高测试效率和准确性至关重要。
代码配置:
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class Test{
private boolean isCommit;
}
postman 测试时传参示范:
{
"isCommit": true --错误示范
"commit": true--正确示范
}
339

被折叠的 条评论
为什么被折叠?
