これと同じ種類の動作を行うことは可能ですか:
protected void onBind(HttpServletRequest request, Object command, BindException bindException) throws Exception {
Invoice invoice = (Invoice) command;
invoice.getLineItems().removeAll(Collections.singletonList(null));
}
注釈を使用する場合 ? @controller アノテーションを使用しているため、onBind 関数はありません。要素のリストを操作したい(リストからアイテムを削除する)。