mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-30 22:39:06 +00:00
Prior to this commit, limiting the exposure to a specific technology in `ConditionalOnAvailableEndpoint` would not have any effect because all endpoints would be considered to be available if the app was running on Cloud Foundry. This caused issues in cases where beans were meant to be exposed only if the endpoint was actually exposed. This commit adds CLOUD_FOUNDRY to the `EndpointExposure` enum. This allows `ConditionalOnAvailableEndpoint` to limit by exposure even when the Cloud Foundry platform is active. Fixes gh-29532