@RequestMapping(value="/update",method=RequestMethod.POST)
	public String update(Member member, MultipartFile photo ) throws Exception {

		if(photo.getSize()>0){ //업데이트할때 사진 선택시
			String filename = this.getNewFileName();
			String path = sc.getAttribute("rootRealPath") + "file/" + filename;
			photo.transferTo(new File(path));
			member.setPhotos(new String[]{filename});
		}
		memberService.updateMember(member);


		return "redirect:view.do?email=" + member.getEmail();

	}