我需要顯示用戶列表,我從控制器中獲得了此列表。@GetMapping("/maintenance-user")public ModelAndView Index() throws Exception{ ModelAndView model = new ModelAndView("maintenance/user/index"); model.addObject("model",service.get()); return model;}service.get返回一個(gè)Iterable對(duì)象這是我的看法<p th:text="${model.Id}"></p>但它返回屬性或在對(duì)象上找不到字段“ Id”。我在這里想念什么?
添加回答
舉報(bào)
0/150
提交
取消