@RequestMapping(value = "/write_review", method = RequestMethod.POST)
public String writeReviewPOST(HttpServletRequest request, MultipartFile file) throws Exception {
BoardReviewVO vo = new BoardReviewVO();
vo.setProd_num(Integer.parseInt(request.getParameter("prod_num")));
vo.setReview_content(request.getParameter("review_content"));
vo.setReview_rating(Float.parseFloat(request.getParameter("review_rating")));
vo.setReview_title(request.getParameter("review_title"));
vo.setUser_num(Integer.parseInt(request.getParameter("user_num")));
vo.setReview_ip(request.getRemoteAddr());
// 리뷰 이미지파일명: review_리뷰글번호
String fileName = "review_" + service.getLastReviewNum() + 1;
File targetFile = new File(reviewImgUploatPath, fileName);
FileCopyUtils.copy(file.getBytes(), targetFile);
vo.setReview_image(fileName);
service.insertReview(vo);
return "redirect:/product/product_detail?prod_num=" + vo.getProd_num();
}