📜  ajax y thymeleaf 片段 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:20.001000             🧑  作者: Mango

代码示例1
@RequestMapping(value = "/refreshItem", method = RequestMethod.GET)
public String refreshItem(@RequestParam("order") String orderId, Model model) {
    List itemList = Item.findItemsByOrderId(orderId).getResultList();

    model.addAttribute("itemList", itemList);

    return "myView :: #item";
}