在自動完成中,我按預期得到產品名稱。 我想根據所選產品進行一些計算。但在doCalculation函數我得到id,而不是'價格'。所以計算不能按預期工作。 假設如果我更改String idExpression = "#{price}";,則計算按預期工作,但未保存訂單。由於得到如下錯誤 Failed to convert property value of type [java.lang.Stri
我有一個spring-boot應用程序,帶有ememleaf。我反覆更新的頁面,並將其重定向到同一個頁面,因此,我希望在頁面元素得到更新: @GetMapping("/suggested-events/vote/{eventId}")
public String voteForEvents(Model model,
@PathVariable("eventId") Lo