Skip to content

Different behavior of JobExecutionDecider when using @Configuration or @AutoConfiguration / proxyBeanMethods=false #4429

Closed
@ck-trigfb

Description

@ck-trigfb

Bug description
When using @AutoConfiguration the JobExecutionDecider will behave different than when just using @Configuration. Because @AutoConfiguration is @Configuration(proxyBeanMethods=false) you will get the same result with that setting.

If I use @Configuration(proxyBeanMethods=true) I will get for my attached example the following order of my steps: step1, step2, step3.
If I use @Configuration(proxyBeanMethods=false) I only get : step1, step2. So the Flow seems to be ended after the JobExecutionDecider.

Environment
Spring Batch 5.0.2, Java Version: 17.0.6, H2-Database

Steps to reproduce
Run attached project first with @Configuration and after that with @AutoConfiguration instead.

Expected behavior
Same behavior in the order of the execution of the steps.

Minimal Complete Reproducible example
Sample attached.
autoconfissue.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: supersededIssues that are superseded by other issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions