Group Validation
This commit is contained in:
parent
51f315189a
commit
d1eaecd89b
@ -1,5 +1,6 @@
|
|||||||
package org.sadtech.example.springvalidation.controller;
|
package org.sadtech.example.springvalidation.controller;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
import org.sadtech.example.springvalidation.dto.PersonDto;
|
import org.sadtech.example.springvalidation.dto.PersonDto;
|
||||||
import org.sadtech.example.springvalidation.valid.Marker;
|
import org.sadtech.example.springvalidation.valid.Marker;
|
||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
@ -11,11 +12,11 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
import javax.validation.groups.Default;
|
|
||||||
|
|
||||||
@Validated
|
@Validated
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/api/group-valid/person")
|
@RequestMapping("/api/group-valid/person")
|
||||||
|
@Tag(name = "Группы валидаций")
|
||||||
public class PersonControllerGroupValid {
|
public class PersonControllerGroupValid {
|
||||||
|
|
||||||
@PostMapping
|
@PostMapping
|
||||||
|
Loading…
Reference in New Issue
Block a user