【发布时间】:2025-12-24 02:30:12
【问题描述】:
我需要在自定义编辑器中访问一些模型信息。我尝试将 ModelMap 用作 initBinder 参数,但在运行时出现拒绝错误。 有什么想法吗?
public void initBinder(WebDataBinder binder, WebRequest request) {
binder.registerCustomEditor(MyData.class, new MyCustomEditor(model));
}
TIA 冰72
【问题讨论】:
标签: spring model-view-controller model controller