在Spring項目中,無論控制器上的requestparam是否錯誤,我都會得到400錯誤。在spring項目中,我得到了400錯誤
這是我的代碼。
@RequestMapping("theater_delTheater.do")
public String theater_updateTheater(@RequestParam int idx){
theaterService.delTheater(Integer.parseInt(idx));
return "/insang/test";
}
IDX在requestparam是數值型,是在電影院電影唯一代碼。
那麼,你想要什麼?你有什麼問題? – Teo
顯示請求代碼(來自前端),或向我們顯示您使用的url。 – Optio