This version is still in development and is not considered stable yet. For the latest stable version, please use Spring Boot 3.5.6! |
Environment (env
)
The env
endpoint provides information about the application’s Environment
.
Retrieving the Entire Environment
To retrieve the entire environment, make a GET
request to /actuator/env
, as shown in the following curl-based example:
$ curl 'http://localhost:8080/actuator/env' -i -X GET
The resulting response is similar to the following:
HTTP/1.1 200 OK
Content-Type: application/vnd.spring-boot.actuator.v3+json
Content-Length: 25136
{
"activeProfiles" : [ ],
"defaultProfiles" : [ "default" ],
"propertySources" : [ {
"name" : "servletContextInitParams",
"properties" : { }
}, {
"name" : "systemProperties",
"properties" : {
"java.specification.version" : {
"value" : "24"
},
"java.class.path" : {
"value" : "/home/runner/.gradle/caches/8.14.3/workerMain/gradle-worker.jar:/home/runner/work/spring-boot/spring-boot/documentation/spring-boot-actuator-docs/build/classes/java/test:/home/runner/work/spring-boot/spring-boot/documentation/spring-boot-actuator-docs/build/resources/test:/home/runner/work/spring-boot/spring-boot/test-support/spring-boot-test-support/build/libs/spring-boot-test-support-4.0.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-web-server-test/build/libs/spring-boot-web-server-test-4.0.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/core/spring-boot-test/build/libs/spring-boot-test-4.0.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-actuator-autoconfigure/build/libs/spring-boot-actuator-autoconfigure-4.0.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-cache/build/libs/spring-boot-cache-4.0.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-flyway/build/libs/spring-boot-flyway-4.0.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-health/build/libs/spring-boot-health-4.0.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-webmvc/build/libs/spring-boot-webmvc-4.0.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-http-converter/build/libs/spring-boot-http-converter-4.0.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-integration/build/libs/spring-boot-integration-4.0.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-jackson/build/libs/spring-boot-jackson-4.0.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-liquibase/build/libs/spring-boot-liquibase-4.0.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-jdbc/build/libs/spring-boot-jdbc-4.0.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-micrometer-metrics/build/libs/spring-boot-micrometer-metrics-4.0.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-quartz/build/libs/spring-boot-quartz-4.0.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-reactor-netty/build/libs/spring-boot-reactor-netty-4.0.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-session/build/libs/spring-boot-session-4.0.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-tomcat/build/libs/spring-boot-tomcat-4.0.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-webflux/build/libs/spring-boot-webflux-4.0.0-SNAPSHOT.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.micrometer/micrometer-registry-prometheus/1.16.0-M3/f11c5be22084618cc75044d03cb041664a1e464d/micrometer-registry-prometheus-1.16.0-M3.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.micrometer/micrometer-core/1.16.0-M3/8aecb8aa222d41cc5a08691de5cf3e10e6f0b94a/micrometer-core-1.16.0-M3.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.prometheus/prometheus-metrics-exposition-formats/1.4.1/39de9a25ca39b151b4815c44632a9b93d55ab288/prometheus-metrics-exposition-formats-1.4.1.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework.restdocs/spring-restdocs-mockmvc/4.0.0-M3/f776c75e5e37285fced24cf8c90216f1a3a2fa07/spring-restdocs-mockmvc-4.0.0-M3.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework.restdocs/spring-restdocs-webtestclient/4.0.0-M3/f213a3638bfe9de67d0d1e6d33d35d52247cb2b5/spring-restdocs-webtestclient-4.0.0-M3.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.junit.jupiter/junit-jupiter/5.13.4/93547b3eca48a61f65f735c1898d3ec196e34149/junit-jupiter-5.13.4.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.mockito/mockito-junit-jupiter/5.19.0/45b64e24e02e3254a4ba262a259c6cf80b723897/mockito-junit-jupiter-5.19.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.junit.jupiter/junit-jupiter-params/5.13.4/c8930eb7fcfbed0b191703ab53f48475a75bd17/junit-jupiter-params-5.13.4.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.junit.jupiter/junit-jupiter-engine/5.13.4/d29fc8b6a28d21b8741f299ae4deb3e3aa68b2e8/junit-jupiter-engine-5.13.4.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.junit.jupiter/junit-jupiter-api/5.13.4/2817f736551fe4949b79924715ef6f594ee072f4/junit-jupiter-api-5.13.4.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.junit.platform/junit-platform-engine/1.13.4/cdd49063ae6e25494d1a9a08f4a9ab5de2b73bcb/junit-platform-engine-1.13.4.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.junit.platform/junit-platform-commons/1.13.4/8f63c7ed05b473d95cc63d1082054d7bfcf9c0e5/junit-platform-commons-1.13.4.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.junit.platform/junit-platform-launcher/1.13.4/e72a4d00af6177569fd57df4c8c4bb241c6aa4b6/junit-platform-launcher-1.13.4.jar:/home/runner/.gradle/caches/modules-2/files-2.1/ch.qos.logback/logback-classic/1.5.18/fc371f3fc97a639de2d67947cffb7518ec5e3d40/logback-classic-1.5.18.jar:/home/runner/.gradle/caches/modules-2/files-2.1/com.h2database/h2/2.3.232/4fcc05d966ccdb2812ae8b9a718f69226c0cf4e2/h2-2.3.232.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-resolver-provider/3.9.10/b1d114550b39033b7b95461ddfc473aafc830d0d/maven-resolver-provider-3.9.10.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-model-builder/3.9.10/9739c202a5381f30e160989119edba0ce053d446/maven-model-builder-3.9.10.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.maven.resolver/maven-resolver-connector-basic/1.9.23/e6057629b09e16e5979db7d5bb0e9ad71137a043/maven-resolver-connector-basic-1.9.23.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.maven.resolver/maven-resolver-impl/1.9.23/2f86656bc45abde5a47f69b04c9dab86c4b9d7ea/maven-resolver-impl-1.9.23.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.maven.resolver/maven-resolver-transport-http/1.9.23/38ed4a6a80408e6e186cfc5d94d080b5b5148099/maven-resolver-transport-http-1.9.23.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.maven.resolver/maven-resolver-spi/1.9.23/c1bd6d68efa5d6743e7f307ce1f79db63b8e1d33/maven-resolver-spi-1.9.23.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.maven.resolver/maven-resolver-util/1.9.23/1f5a34b81bddfc5d1200610819ce569c84591318/maven-resolver-util-1.9.23.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.maven.resolver/maven-resolver-api/1.9.23/a3a93e5924b8a53391b73e3e5038c25d4fadb7df/maven-resolver-api-1.9.23.jar:/home/runner/work/spring-boot/spring-boot/core/spring-boot-autoconfigure/build/libs/spring-boot-autoconfigure-4.0.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-actuator/build/libs/spring-boot-actuator-4.0.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-tx/build/libs/spring-boot-tx-4.0.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-sql/build/libs/spring-boot-sql-4.0.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-micrometer-observation/build/libs/spring-boot-micrometer-observation-4.0.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-web-server/build/libs/spring-boot-web-server-4.0.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-netty/build/libs/spring-boot-netty-4.0.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-http-codec/build/libs/spring-boot-http-codec-4.0.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-servlet/build/libs/spring-boot-servlet-4.0.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-persistence/build/libs/spring-boot-persistence-4.0.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/core/spring-boot/build/libs/spring-boot-4.0.0-SNAPSHOT.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-test/7.0.0-M9/3bc76c46a10420fb97e92f05911cb4c873ae352/spring-test-7.0.0-M9.jar:/home/runner/.gradle/caches/modules-2/files-2.1/tools.jackson.core/jackson-core/3.0.0-rc9/dcafe2911c3dc62a98374c850d6a9fe22799d3c5/jackson-core-3.0.0-rc9.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework.restdocs/spring-restdocs-core/4.0.0-M3/4b0e5e22df81adf32cae8395e1e2fe2b3d4ed94d/spring-restdocs-core-4.0.0-M3.jar:/home/runner/.gradle/caches/modules-2/files-2.1/tools.jackson.core/jackson-databind/3.0.0-rc9/1cdd2589730370a4cf1d3256d810d9cd998261a5/jackson-databind-3.0.0-rc9.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-context-support/7.0.0-M9/6057c05463deca1c6eadaed0864bbe1c1f18b1fe/spring-context-support-7.0.0-M9.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.flywaydb/flyway-core/11.13.1/3d44db5cf1ddb86b682c5f961675fe8606b7b0d5/flyway-core-11.13.1.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-webflux/7.0.0-M9/afd7de878d144015b461a5918bf39d0db23d07d5/spring-webflux-7.0.0-M9.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-webmvc/7.0.0-M9/29918c4c7297cd7f62c50be2ea901e44624dba40/spring-webmvc-7.0.0-M9.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-web/7.0.0-M9/ff20ac5eca8e00aa631ee49e6fdcf59499c270d9/spring-web-7.0.0-M9.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework.integration/spring-integration-core/7.0.0-M3/5c1dbb56980f493467e6b94ce95366aef22e9563/spring-integration-core-7.0.0-M3.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-jdbc/7.0.0-M9/45a59836f2441a5ad3f835e730468c74e6a62fdf/spring-jdbc-7.0.0-M9.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.liquibase/liquibase-core/4.33.0/25b69ed7cc15e3c5de424ca9f32375f1815dd4e8/liquibase-core-4.33.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.quartz-scheduler/quartz/2.5.0/f5f0e256f6c82299e0bccbf559a8ca38bd8c187b/quartz-2.5.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.projectreactor.netty/reactor-netty-http/1.3.0-M7/394420d18e794034e77b332a22b5235863d17a19/reactor-netty-http-1.3.0-M7.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework.session/spring-session-core/4.0.0-M2/526a17b6f6cd2fa6d25c2d53b5148520e813cd2b/spring-session-core-4.0.0-M2.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.tomcat.embed/tomcat-embed-core/11.0.11/bf4789372b5e4cd553d9a68d38967d1cbb41daa2/tomcat-embed-core-11.0.11.jar:/home/runner/.gradle/caches/modules-2/files-2.1/jakarta.annotation/jakarta.annotation-api/3.0.0/54f928fadec906a99d558536756d171917b9d936/jakarta.annotation-api-3.0.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/com.jayway.jsonpath/json-path/2.9.0/37fe2217f577b0b68b18e62c4d17a8858ecf9b69/json-path-2.9.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.assertj/assertj-core/3.27.4/65e62575f7e422df6d290dc1cb15f3c97108b2b1/assertj-core-3.27.4.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.awaitility/awaitility/4.3.0/f0c0bc1e404e500bab3f498b922eaedeae1c0207/awaitility-4.3.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-library/3.0/d42c7c6c28654a3d1eb654edaa82fd85c01ce417/hamcrest-library-3.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-core/3.0/254f69f4b0ca22198acfc19fcdd5f96140431c3e/hamcrest-core-3.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.mockito/mockito-core/5.19.0/82b320935809e3c8ff92c2007dae5dff88d76f32/mockito-core-5.19.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.skyscreamer/jsonassert/1.5.3/aaa43e0823d2a0e106e8754d6a9c4ab24e05e9bc/jsonassert-1.5.3.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-context/7.0.0-M9/8bfe00c51f1939026382d06c407edda3544a9d6e/spring-context-7.0.0-M9.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-core-test/7.0.0-M9/172ae315b06eb37ef4e94791c3fc5474572432bd/spring-core-test-7.0.0-M9.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-tx/7.0.0-M9/a1d6e101f76eac2104443b014c576f4e7798a7dd/spring-tx-7.0.0-M9.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-aop/7.0.0-M9/c8032a1888364fac4ac9337b3c8d17591dd70b4a/spring-aop-7.0.0-M9.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-messaging/7.0.0-M9/4f99df5565db334d6edca943a6b25ab3a19fd9f6/spring-messaging-7.0.0-M9.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-beans/7.0.0-M9/9e358b57a6a6449379a6e15db416d3a00786c04f/spring-beans-7.0.0-M9.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-expression/7.0.0-M9/77e196a784a7776a7fabe2308f3fb47ea96ebc08/spring-expression-7.0.0-M9.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-core/7.0.0-M9/4618e3dcc6aba174c845d9522ec573b526afb2b4/spring-core-7.0.0-M9.jar:/home/runner/.gradle/caches/modules-2/files-2.1/jakarta.inject/jakarta.inject-api/2.0.1/4c28afe1991a941d7702fe1362c365f0a8641d1e/jakarta.inject-api-2.0.1.jar:/home/runner/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-databind/2.20.0/f0a5e62fbd21285e9a5498a60dccb097e1ef793b/jackson-databind-2.20.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-core/2.20.0/3c97f7fad069f7cfae639d790bd93d6a0b2dff31/jackson-core-2.20.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/net.bytebuddy/byte-buddy/1.17.7/3856bfab61beb23e099a0d6629f2ba8de4b98ace/byte-buddy-1.17.7.jar:/home/runner/.gradle/caches/modules-2/files-2.1/net.bytebuddy/byte-buddy-agent/1.17.7/fbf3d6d649ed37fc9e9c59480a05be0a26e3c2da/byte-buddy-agent-1.17.7.jar:/home/runner/.gradle/caches/modules-2/files-2.1/commons-codec/commons-codec/1.19.0/8c0dbe3ae883fceda9b50a6c76e745e548073388/commons-codec-1.19.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/com.opencsv/opencsv/5.11.2/40b776b96a8f81cf675d5384ca6440c20e6e258a/opencsv-5.11.2.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-text/1.13.1/88b9f76d465e35a06cd439ddcb8190ff182931e/commons-text-1.13.1.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-lang3/3.18.0/fb14946f0e39748a6571de0635acbe44e7885491/commons-lang3-3.18.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/commons-logging/commons-logging/1.3.5/a3fcc5d3c29b2b03433aa2d2f2d2c1b1638924a1/commons-logging-1.3.5.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest/3.0/8fd9b78a8e6a6510a078a9e30e9e86a6035cfaf7/hamcrest-3.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpclient/4.5.14/1194890e6f56ec29177673f2f12d0b8e627dec98/httpclient-4.5.14.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpcore/4.4.16/51cf043c87253c9f58b539c9f7e44c8894223850/httpcore-4.4.16.jar:/home/runner/.gradle/caches/modules-2/files-2.1/jakarta.xml.bind/jakarta.xml.bind-api/4.0.2/6cd5a999b834b63238005b7144136379dc36cad2/jakarta.xml.bind-api-4.0.2.jar:/home/runner/.gradle/caches/modules-2/files-2.1/jakarta.activation/jakarta.activation-api/2.1.4/9e5c2a0d75dde71a0bedc4dbdbe47b78a5dc50f8/jakarta.activation-api-2.1.4.jar:/home/runner/.gradle/caches/modules-2/files-2.1/jakarta.servlet/jakarta.servlet-api/6.1.0/1169a246913fe3823782af7943e7a103634867c5/jakarta.servlet-api-6.1.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/com.samskivert/jmustache/1.16/979c7145a406b83bf28da32531f88a34c2d2919c/jmustache-1.16.jar:/home/runner/.gradle/caches/modules-2/files-2.1/net.minidev/json-smart/2.6.0/5f858a43a325a8673da6869ab2bc787a1bcb2244/json-smart-2.6.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.micrometer/micrometer-observation/1.16.0-M3/9fc29d24fb40605f443cc14a6319f25a1c6746bc/micrometer-observation-1.16.0-M3.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.micrometer/micrometer-commons/1.16.0-M3/7b9a052cdf8125c7f31a752b1e7b4cfd8cdc4160/micrometer-commons-1.16.0-M3.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.projectreactor.netty/reactor-netty-core/1.3.0-M7/152f4075f0e980802e64407e2cb0c9920b787c0e/reactor-netty-core-1.3.0-M7.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.jspecify/jspecify/1.0.0/7425a601c1c7ec76645a78d22b8c6a627edee507/jspecify-1.0.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/ch.qos.logback/logback-core/1.5.18/6c0375624f6f36b4e089e2488ba21334a11ef13f/logback-core-1.5.18.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.projectreactor/reactor-core/3.8.0-M7/cbe5b8b1e86a46c59708458bb2b2a61e9088777b/reactor-core-3.8.0-M7.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.reactivestreams/reactive-streams/1.0.4/3864a1320d97d7b045f729a326e1e077661f31b7/reactive-streams-1.0.4.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.maven.resolver/maven-resolver-named-locks/1.9.23/8394515982aec314d0f15b9abecbf49da1160efa/maven-resolver-named-locks-1.9.23.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.slf4j/slf4j-api/2.0.17/d9e58ac9c7779ba3bf8142aff6c830617a7fe60f/slf4j-api-2.0.17.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.yaml/snakeyaml/2.5/2d53ddec134280cb384c1e35d094e5f71c1f2316/snakeyaml-2.5.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-http2/4.2.6.Final/55b556602dd5ae7adf7a0ef4720195138018a623/netty-codec-http2-4.2.6.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-handler-proxy/4.2.6.Final/1f0f9fb2f321cc697f13d802cf80c37889ce421a/netty-handler-proxy-4.2.6.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-http/4.2.6.Final/26da0fb9215bde2ecd551b941ccb974f65f59884/netty-codec-http-4.2.6.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-resolver-dns-native-macos/4.2.6.Final/1e1c193cb0d436f914cb2b1d7c32bb1f683304ae/netty-resolver-dns-native-macos-4.2.6.Final-osx-x86_64.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-resolver-dns-classes-macos/4.2.6.Final/c5f90e2d04c6908e981e7b8f8ee984ca76ed9bb9/netty-resolver-dns-classes-macos-4.2.6.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-resolver-dns/4.2.6.Final/ff71e8ef0b6bfdef7620ff4e77481a716792534f/netty-resolver-dns-4.2.6.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-transport-native-epoll/4.2.6.Final/c4a2ba3782e65b34bbb54c3a6636b466955dc1c6/netty-transport-native-epoll-4.2.6.Final-linux-x86_64.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-handler/4.2.6.Final/311ea62f27b26685b306dc24c4bbf765bc1950d9/netty-handler-4.2.6.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-compression/4.2.6.Final/fadf334ce949ae99b96b4b9d95d59c30a5dc2614/netty-codec-compression-4.2.6.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-dns/4.2.6.Final/498d957639b6249ba1b6884b212bb9e3d8580ec3/netty-codec-dns-4.2.6.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-socks/4.2.6.Final/6e9de561de0b5764cf05be667c90a4fe06aba40c/netty-codec-socks-4.2.6.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-base/4.2.6.Final/fd6ff9613696f99857daeca37d4cfed22b1eb69e/netty-codec-base-4.2.6.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-transport-classes-epoll/4.2.6.Final/b61968c0cb9c474df7a0ddc7cd577fed677efbbb/netty-transport-classes-epoll-4.2.6.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-transport-native-unix-common/4.2.6.Final/cacd60c080051c74b9487074cf89d28ec892d71c/netty-transport-native-unix-common-4.2.6.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-transport/4.2.6.Final/15af02f1735db36455f2af2fd11b64e9f4499008/netty-transport-4.2.6.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-buffer/4.2.6.Final/4dfa898e145ea6910b9e99388f35e0ad483a6dfa/netty-buffer-4.2.6.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-resolver/4.2.6.Final/121223f223094539282b916c303ac52c7875b9aa/netty-resolver-4.2.6.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-common/4.2.6.Final/5746874869298a07b468dd50b5991f457e773620/netty-common-4.2.6.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-model/3.9.10/e9cf4cda5a52c4b11290dc5b2305f3769fe35b1d/maven-model-3.9.10.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-repository-metadata/3.9.10/afb88b856e7e5a8950fb03a7ce2cbaa3a66c21c9/maven-repository-metadata-3.9.10.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-artifact/3.9.10/cdf10197d944731dd2e19aa171b09550269e4414/maven-artifact-3.9.10.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.codehaus.plexus/plexus-utils/3.6.0/e8bc129728f22671a36fff3b604edcd39073a7b1/plexus-utils-3.6.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-annotations/2.20/6a5e7291ea3f2b590a7ce400adb7b3aea4d7e12c/jackson-annotations-2.20.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.prometheus/prometheus-metrics-core/1.4.1/57a307dcbbee8f9609423f8bdeec85bcb0371a05/prometheus-metrics-core-1.4.1.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.prometheus/prometheus-metrics-exposition-textformats/1.4.1/173b3b8fa81ff8ca49a199da38d8bf5620202dd0/prometheus-metrics-exposition-textformats-1.4.1.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.prometheus/prometheus-metrics-model/1.4.1/f2b874429f38b55494b009c3c8f8015d7c0e4d44/prometheus-metrics-model-1.4.1.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.prometheus/prometheus-metrics-config/1.4.1/8f1f26b2bf98c42c846d6cc455c2549c6949373a/prometheus-metrics-config-1.4.1.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.prometheus/prometheus-metrics-tracer-common/1.4.1/cfd00f53d5a7dc48c7664c6b8185b36dadbbbe82/prometheus-metrics-tracer-common-1.4.1.jar:/home/runner/.gradle/caches/modules-2/files-2.1/com.vaadin.external.google/android-json/0.0.20131108.vaadin1/fa26d351fe62a6a17f5cda1287c1c6110dec413f/android-json-0.0.20131108.vaadin1.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-collections4/4.5.0/e5cf89f0c6e132fc970bd9a465fdcb8dbe94f75a/commons-collections4-4.5.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/commons-io/commons-io/2.19.0/1f8d4a99ba72b77aa69101175efc79b0c7dcdd7e/commons-io-2.19.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.codehaus.plexus/plexus-interpolation/1.28/90d3608cd99f21717a581f036a1c69ff762f5ed6/plexus-interpolation-1.28.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-builder-support/3.9.10/56ef0175ff20fa59761becdf7536863a0eefd550/maven-builder-support-3.9.10.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.eclipse.sisu/org.eclipse.sisu.inject/0.9.0.M4/a062d8e12dc62e698c9f943a3fce94e366b4e220/org.eclipse.sisu.inject-0.9.0.M4.jar:/home/runner/.gradle/caches/modules-2/files-2.1/net.minidev/accessors-smart/2.6.0/2d96f1d9b6ab7f13261aa81b15703574185747a0/accessors-smart-2.6.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm/9.8/dc19ecb3f7889b7860697215cae99c0f9b6f6b4b/asm-9.8.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.hdrhistogram/HdrHistogram/2.2.2/7959933ebcc0f05b2eaa5af0a0c8689fa257b15c/HdrHistogram-2.2.2.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.latencyutils/LatencyUtils/2.0.3/769c0b82cb2421c8256300e907298a9410a2a3d3/LatencyUtils-2.0.3.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.objenesis/objenesis/3.3/1049c09f1de4331e8193e579448d0916d75b7631/objenesis-3.3.jar:/home/runner/.gradle/caches/modules-2/files-2.1/com.thoughtworks.qdox/qdox/2.2.0/39651eb3ce73d6e506490ea352e1e13eab6b55e8/qdox-2.2.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.opentest4j/opentest4j/1.3.0/152ea56b3a72f655d4fd677fc0ef2596c3dd5e6e/opentest4j-1.3.0.jar"
},
"java.vm.vendor" : {
"value" : "BellSoft"
}
}
}, {
"name" : "systemEnvironment",
"properties" : {
"JAVA_HOME" : {
"origin" : "System Environment Property \"JAVA_HOME\"",
"value" : "/opt/hostedtoolcache/Java_Liberica_jdk/24.0.2-12/x64"
}
}
}, {
"name" : "Config resource 'class path resource [org/springframework/boot/actuate/docs/env/application.properties]' via location 'classpath:/org/springframework/boot/actuate/docs/env/'",
"properties" : {
"com.example.cache.max-size" : {
"origin" : "class path resource [org/springframework/boot/actuate/docs/env/application.properties] - 1:29",
"value" : "1000"
}
}
}, {
"name" : "applicationInfo",
"properties" : { }
} ]
}
Sanitization of sensitive values has been switched off for this example. |
Response Structure
The response contains details of the application’s Environment
.
The following table describes the structure of the response:
Path | Type | Description |
---|---|---|
|
|
Names of the active profiles, if any. |
|
|
Names of the default profiles, if any. |
|
|
Property sources in order of precedence. |
|
|
Name of the property source. |
|
|
Properties in the property source keyed by property name. |
|
|
Value of the property. |
|
|
Origin of the property, if any. |
Retrieving a Single Property
To retrieve a single property, make a GET
request to /actuator/env/{property.name}
, as shown in the following curl-based example:
$ curl 'http://localhost:8080/actuator/env/com.example.cache.max-size' -i -X GET
The preceding example retrieves information about the property named com.example.cache.max-size
.
The resulting response is similar to the following:
HTTP/1.1 200 OK
Content-Disposition: inline;filename=f.txt
Content-Type: application/vnd.spring-boot.actuator.v3+json
Content-Length: 722
{"activeProfiles":[],"defaultProfiles":["default"],"property":{"source":"Config resource 'class path resource [org/springframework/boot/actuate/docs/env/application.properties]' via location 'classpath:/org/springframework/boot/actuate/docs/env/'","value":"1000"},"propertySources":[{"name":"servletContextInitParams"},{"name":"systemProperties"},{"name":"systemEnvironment"},{"name":"Config resource 'class path resource [org/springframework/boot/actuate/docs/env/application.properties]' via location 'classpath:/org/springframework/boot/actuate/docs/env/'","property":{"origin":"class path resource [org/springframework/boot/actuate/docs/env/application.properties] - 1:29","value":"1000"}},{"name":"applicationInfo"}]}
Sanitization of sensitive values has been switched off for this example. |
Response Structure
The response contains details of the requested property. The following table describes the structure of the response:
Path | Type | Description |
---|---|---|
|
|
Property from the environment, if found. |
|
|
Name of the source of the property. |
|
|
Value of the property. |
|
|
Names of the active profiles, if any. |
|
|
Names of the default profiles, if any. |
|
|
Property sources in order of precedence. |
|
|
Name of the property source. |
|
|
Property in the property source, if any. |
|
|
Value of the property. |
|
|
Origin of the property, if any. |