The Java CfEnv Framework provides the java-cfenv library for Spring Boot 3+ applications. This library sets various Spring Boot properties by parsing CloudFoundry variables such as VCAP_SERVICES, allowing Spring Boot's autoconfiguration to kick in.
This is the recommended replacement for Spring AutoReconfiguration library which is deprecated. See the java-cfenv repostitory for more detail.
It also sets the 'cloud' profile for Spring Boot applications, as the Spring AutoReconfiguration framework did.
| Detection Criterion | Existence of a spring-boot-3*.jar file in the application directory or a `Spring-Boot-Version: 3.*` manifest entry | No existing `java-cfenv` library found |
| Tags | java-cf-env=<version> |