@RequestMapping(
      value = "/api/members/update",
      method = RequestMethod.POST,
      consumes = "application/json")
  @ResponseBody
  public ResponseEntity<Member> updateMember(@RequestBody Member member) {

    if (member != null) {
      memberService.updateMember(member);
    }
    return new ResponseEntity<Member>(member, HttpStatus.OK);
  }
  @RequestMapping(
      value = "/api/members/new",
      method = RequestMethod.POST,
      produces = "application/json",
      consumes = "application/json")
  @ResponseBody
  public ResponseEntity<Member> createMember(@RequestBody Member member) {

    if (member != null) {
      System.out.println(memberService.createMember(member));
    }
    return new ResponseEntity<Member>(member, HttpStatus.OK);
  }
  @RequestMapping(value = "/api/data.xml", method = RequestMethod.GET, produces = "application/xml")
  @ResponseBody
  public List<Member> getDataInXml() {

    return memberService.getMember(10001);
  }
  @RequestMapping(value = "/api/members", method = RequestMethod.GET, produces = "application/json")
  @ResponseBody
  public List<Member> getDataInJson() {

    return memberService.getMember(2);
  }