emrhssla
612
2022-05-03 12:53:49
3
123

Spring Controller return 받을때 질문




아래처럼 movieId를 넣어주고 싶은데 방법있나요 ㅜ 


@PostMapping("/edit")
public String requestRegisterReview(@CookieValue(value = "accessToken", required = false) String accessToken,
@PathVariable Long reviewId, @Valid ReviewForm form, BindingResult bindingResult,
Model model) {  

Long movieId = reviewService.findMovieId(reviewId);
..
return "redirect:/movies/{movieId}/reviews";
}
0