我将请求参数作为 POJO 并在方法中什么也不做,但在 jsp 中显示我从请求中获得的参数。为什么方法返回我的对象?此外,当我使用原始类型或字符串时,它不会返回对象并且可以完美运行
控制器
@GetMapping("/ULD_details")
public String ULD_detailGet(ActionError ID){
return "ULD_detail";
JSP
<tr>
<td >ULD id</td>
<td>${actionError.ID}</td>
</tr>
关联
http://localhost:8080/UCM-controller/ULD_details?ID=1145