spring boot 新手錯誤

使用模版的時候,出錯:Putting a context variable with name "param" is forbidden

model.addAttribute("param", "hello,spring boot thymeleaf");

規定了關鍵字,param不能作爲參數傳遞出去;

model.addAttribute("paraddd", "hello,spring boot thymeleaf");



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章