Skip to content

Instantly share code, notes, and snippets.

@CheolhoJeon
Last active April 27, 2020 08:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CheolhoJeon/1c8e31ab004d7dece65d8d7f8e915881 to your computer and use it in GitHub Desktop.
Save CheolhoJeon/1c8e31ab004d7dece65d8d7f8e915881 to your computer and use it in GitHub Desktop.
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class RestMemberController {
private MemberDao memberDao;
private MemberRegisterService registerService;
...
@PostMapping("/api/members")
public void newMember(@RequestBody @Valid RegisterRequest regReq, HttpServletResponse response) throws IOException {
...
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment