Skip to content

Commit

Permalink
test @validated
Browse files Browse the repository at this point in the history
  • Loading branch information
javahongxi committed Jul 30, 2021
1 parent ffb9cd8 commit f454974
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class SampleController {

@GetMapping({"/hello", "hi"})
public Result<String> hello(@RequestParam String userId,
@RequestParam @Min(value = 18, message = "age must greater then 18") Integer age) {
@RequestParam @Min(value = 18) Integer age) {
String hello = userId + "," + age;
return ResultHelper.newSuccessResult(hello);
}
Expand Down

0 comments on commit f454974

Please sign in to comment.