是否有任何环境变量或如何更改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