@validated
时间: 2023-08-30 12:08:15 浏览: 118
@Validated是一个Java注解,在Spring框架中使用。它可以应用于类、方法和参数上,并且被用于验证输入参数的有效性。在给定的例子中,@Validated注解被应用于registerStudent方法的参数UserJsonBean上。这表示在调用该方法时,将会对UserJsonBean对象进行验证,确保其满足定义的校验规则。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* [@Validated注解详解,分组校验,嵌套校验](https://blog.csdn.net/qq_39367410/article/details/127118693)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
- *2* *3* [@Validated注解](https://blog.csdn.net/zhijingzhi/article/details/125171396)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文