春季批次 - 如何自定义步骤退出消息描述长度?



是否有任何环境变量或如何更改maxVarCharLength,例如JobRepositoryFactoryBean.java中的tablePrefix

我找不到任何调用此setter方法的配置类

public void setMaxVarCharLength(int maxVarCharLength) {
this.maxVarCharLength = maxVarCharLength;
}

由您调用此方法以设置maxVarCharLength属性。然后,JobRepositoryFactoryBean将使用您设置的值来创建JobRepository。您可以在此处找到示例:https://docs.spring.io/spring-batch/4.0.x/reference/html/job.html#configuringJobRepository

最新更新