@RequestMapping(value="/signup", method=RequestMethod.POST)
	public String signup(
			Member member,
			MultipartFile photo,
			HttpSession session){
		try{
			String filename = this.getNewFileName();
			String path = sc.getAttribute("rootRealPath") + "file/" + filename;
			photo.transferTo(new File(path));
			member.setPhotos(new String[]{filename});

			memberService.signUp(member);
			session.setAttribute("member", member);

			return "redirect:../main.do";
		}catch(Exception e){
			return "error";
		}
	}