---
title: "Discussion on \"spring batch lazy하게 의존하기\" | Hashnode"
description: "Discussion on \"spring batch lazy하게 의존하기\". 발단\n보통 spring batch를 사용할 때, 여러개의 Job들을 Bean으로 띄어놓고 program arguments로 job.name을 지정하여 사용한다. 하지만 이런 경우에 Bean으로 띄우다 보니 initialization이 일어날 때 Bean 내부의 runtime exception이나 해당 bean이 의존하는 bean(datasource 등)에서 runtime exception이 발생한다면 그것과 상관없는 job 또한 실행이 불가능하..."
url: "https://hashnode.com/posts/spring-batch-lazy/66c59ebc9bb984cae236776a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [spring batch lazy하게 의존하기](https://whatsmin.hashnode.dev/spring-batch-lazy?utm_source=hashnode&utm_medium=feed)

발단 보통 spring batch를 사용할 때, 여러개의 Job들을 Bean으로 띄어놓고 program arguments로 job.name을 지정하여 사용한다. 하지만 이런 경우에 Bean으로 띄우다 보니 initialization이 일어날 때 Bean 내부의 runtime exception이나 해당 bean이 의존하는 bean(datasource 등)에서 runtime exception이 발생한다면 그것과 상관없는 job 또한 실행이 불가능하...

Aug 21, 2024 · 5 min read · whatsmin.hashnode.dev  
Read the article

-   [#springboot](https://hashnode.com/tag/springboot)
-   [#spring-batch](https://hashnode.com/tag/spring-batch)

## Written by

[sangminLee](https://hashnode.com/@whatsMin)

@whatsMin

  
[View profile](https://hashnode.com/@whatsMin)

programming

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
