0
是否有可能做同样一种行为,因为这:使用注释将数据绑定
protected void onBind(HttpServletRequest request, Object command, BindException bindException) throws Exception {
Invoice invoice = (Invoice) command;
invoice.getLineItems().removeAll(Collections.singletonList(null));
}
当使用注解? 我使用@controller注释,所以我没有onBind函数。我想操纵元素列表(从列表中删除项目)。