我正在使用带有 Hibernate 的 Spring MVC
我的查询是,当使用Controller
将一些数据返回到视图Model
时,定义如下
@RequestMapping(value = "/finGeneralJournalAdd", method = RequestMethod.POST)
public String finGeneralJournalAdd(Model model) {
model.addAttribute("srcDocumentList", pt.getAll(FinSourceDocumentModel.class));
model.addAttribute("currencyList", pt.getAll(GenCurrencyModel.class));
model.addAttribute("batchList", pt.getAll(FinBatchModel.class));
return "fin/finGeneralJournalAdd";
}
Model
默认情况下,每次返回时都应附加某些参数。即货币ID