fix 修复接口单参数校验无效问题

This commit is contained in:
疯狂的狮子li 2021-07-18 19:53:16 +08:00
parent 7cffafcdaa
commit fdd8c65b36
1 changed files with 1 additions and 0 deletions

View File

@ -33,6 +33,7 @@ import io.swagger.annotations.ApiOperation;
* @author ${author} * @author ${author}
* @date ${datetime} * @date ${datetime}
*/ */
@Validated
@Api(value = "${functionName}控制器", tags = {"${functionName}管理"}) @Api(value = "${functionName}控制器", tags = {"${functionName}管理"})
@RequiredArgsConstructor(onConstructor_ = @Autowired) @RequiredArgsConstructor(onConstructor_ = @Autowired)
@RestController @RestController