【问题标题】:How can I set isolation-level-for-create via yaml configuration file for spring batch如何通过 yaml 配置文件为 spring 批处理设置隔离级别创建
【发布时间】:2022-01-19 17:13:29
【问题描述】:

我在这里找到了通过 Java 代码执行此操作的解决方案: https://docs.spring.io/spring-batch/docs/4.2.x/reference/html/job.html#configuringJobRepository

但是,如果可能的话,我想通过批处理配置文件中的 yaml 格式配置以一种简单的方式来实现。

谢谢。

【问题讨论】:

    标签: spring spring-boot spring-batch


    【解决方案1】:

    据我所知,目前yaml中没有这样的属性可用。

    Spring Boot (https://github.com/spring-projects/spring-boot/issues/28802) 中有一个开放的功能请求,将来可能会导致类似spring.batch.jdbc.isolation-level-for-create 的属性。在此之前,您需要使用 Java(或 XML)配置。

    【讨论】:

      猜你喜欢
      • 2018-04-30
      • 2015-09-09
      • 1970-01-01
      • 2016-05-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-12-13
      • 1970-01-01
      相关资源
      最近更新 更多