1
1

More than 3 years have passed since last update.

Spring-Batchをストレスなく使う

Posted at

Spring-Batchをストレスなく使う

  • TLDR;
    • spring-batchにはジョブ状態を管理する機能があるが、邪魔なのでapplication.ymlで無効にできる
    • その他の関連する設定についても書く

application.ymlの設定

  • banner-mode: off
    • spring-bootの起動時のバナー表示をしない(off,console,logの設定ができる)
  • initilization-schema: never
    • spring-batch起動時にバッチジョブ用テーブルを初期化するかどうか
spring:
  main:
    banner-mode: off
  batch:
    initilization-schema: never

アノテーション設定

@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})

参考

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1