是否有任何方式在read(),updated()和open()方法之外的任何其他方式在executioncontext中添加条目。如何编辑ExecutionContext弹簧批处理
像在下面的代码中,我试图在close方法中添加条目。
在上述示例中,我无法更新新条目。 它只能以只读的方式工作。我可以读取数据但不写入。
class abc{
@Autowired
private ExecutionContext executionContext;
public AccountDetails mapFieldSet(FieldSet fieldSet) throws BindException {
executionContext.putLong(Constants.CONTEXT_COUNT_KEY.getStrValue(), 47);
return accDetailsObj;
}
}
我还需要在其他类中更新executionContext。 有什么办法吗?
你能分享你的阅读器的配置吗? –