0
這是控制器的樣品實例使用Spring MVC Model時,模型實例何時初始化?
@Controller
public class AccountingController {
@RequestMapping(value = "/common/accounting")
public String index(Model model) {
model.addAttribute(attributeName, attributeValue)
return "/common/accounging/index";
}
}
我的問題是,哪裏在索引函數模型參數被初始化的? 如何將這些哈希值轉換爲請求對象?