티스토리 뷰

728x90
@RestController
@Validated          // <-- This activates the Spring Validation AOP interceptor
public class MyController {

  ...
      @RequestBody List<@Valid CompanyTag>

https://stackoverflow.com/questions/28150405/validation-of-a-list-of-objects-in-spring

 

Validation of a list of objects in Spring

I have the following controller method: @RequestMapping(value="/map/update", method=RequestMethod.POST, produces = "application/json; charset=utf-8") @ResponseBody public ResponseEntityWrapper

stackoverflow.com

 

728x90
댓글