This commit is contained in:
tanghc
2020-08-04 18:02:46 +08:00
parent 5b58f110a2
commit 8a87e945de
3 changed files with 96 additions and 29 deletions

View File

@@ -62,6 +62,15 @@ public class Example1001_BaseController {
return story;
}
// 参数绑定
@Open(value = "story.param.bind", mergeResult = false)
@RequestMapping("/get/param/v1")
public StoryResult param(int id, String name) {
StoryResult result = new StoryResult();
result.setName("参数绑定id:" + id + ", name:" + name);
return result;
}
// 忽略验证
@Open(value = "story.get.ignore", ignoreValidate = true)
@RequestMapping("/get/ignore/v1")