【springmvc】@RequestParam詳解以及加與不加的區別

 之前寫controller層的時候都是默認帶上 @RequestParam 的, 今天發現不加@RequestParam 也能接收到參數html 下面咱們來區分一下加與不加的區別app 這裏有兩種寫法ui @RequestMapping("/list") public String test(@RequestParam Long parentId) { } @RequestMappi
相關文章
相關標籤/搜索