@RequestParam和@Validated

Spring 的这两个参数什么区别呢,@RequestParam和@Validated 这两个为什么都需要验证

首先这是两个注解
@RequestParam是用来获取前端传过来的参数值的
@Validated才是用于校验参数的