Skip to content

[go-migration] Correct framework order for java_cf_env and spring auto reconfiguration#1157

Merged
ramonskie merged 4 commits intocloudfoundry:feature/go-migrationfrom
kiril-keranov:patch-11
Jan 29, 2026
Merged

[go-migration] Correct framework order for java_cf_env and spring auto reconfiguration#1157
ramonskie merged 4 commits intocloudfoundry:feature/go-migrationfrom
kiril-keranov:patch-11

Conversation

@kiril-keranov
Copy link
Contributor

@kiril-keranov kiril-keranov commented Jan 28, 2026

SpringAutoReconfigurationFramework should not be enabled if JavaCfEnvFramework is already enabled. Spring Auto Reconfiguration is only provided if Java Cf Env is explicitly disabled. Currently if an app is staged like:

env:
    JBP_CONFIG_JAVA_CF_ENV: "{enabled: true}"
    JBP_CONFIG_SPRING_AUTO_RECONFIGURATION: "{enabled: true}"

both will be provided because this check won't pass since the Java Cf Env is detected later in the sequence.
Note: Java Cf Env is enabled by default, without explicitly setting it like in the example above, so if staged like below it will reproduce also:

env:
    JBP_CONFIG_SPRING_AUTO_RECONFIGURATION: "{enabled: true}"

Some tests integration tests with regard to those frameworks are also adjusted. Another test that always passed and tested nothing was removed.

Copy link
Contributor

@ramonskie ramonskie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ramonskie ramonskie merged commit cd4bd7b into cloudfoundry:feature/go-migration Jan 29, 2026
1 check passed
@kiril-keranov kiril-keranov changed the title Correct framework order for java_cf_env and spring auto reconfiguration [go-migration] Correct framework order for java_cf_env and spring auto reconfiguration Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants