Spring Batch-如何自定义“步骤退出”消息描述长度?

时间:2018-10-03 15:01:57

标签: spring-batch

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

我找不到任何名为setter方法的配置类

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

1 个答案:

答案 0 :(得分:0)

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

相关问题