Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Slf4j
- @RestController
- @RequestMapping(value = Constant.PATH_PERSON)
- class PersonController {
- ...
- @PostMapping
- ResponseDTO<PersonDTO> create(@RequestDTO(PersonDTO.class) @Validated Person person) {
- return ResponseDTO.accepted().convertTo(personService.create(person), PersonDTO.class);
- }
- ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement