This version is still in development and is not considered stable yet. For the latest stable version, please use Spring Boot 4.0.4!spring-doc.cn

Environment (env)

The env endpoint provides information about the application’s Environment.spring-doc.cn

Retrieving the Entire Environment

To retrieve the entire environment, make a GET request to /actuator/env, as shown in the following curl-based example:spring-doc.cn

$ curl 'http://localhost:8080/actuator/env' -i -X GET

The resulting response is similar to the following:spring-doc.cn

HTTP/1.1 200 OK
Content-Type: application/vnd.spring-boot.actuator.v3+json
Content-Length: 25715

{
  "activeProfiles" : [ ],
  "defaultProfiles" : [ "default" ],
  "propertySources" : [ {
    "name" : "servletContextInitParams",
    "properties" : { }
  }, {
    "name" : "systemProperties",
    "properties" : {
      "java.specification.version" : {
        "value" : "25"
      },
      "java.class.path" : {
        "value" : "/home/runner/.gradle/caches/9.4.1/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.1.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/core/spring-boot-test/build/libs/spring-boot-test-4.1.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-actuator-autoconfigure/build/libs/spring-boot-actuator-autoconfigure-4.1.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-cache/build/libs/spring-boot-cache-4.1.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-flyway/build/libs/spring-boot-flyway-4.1.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-health/build/libs/spring-boot-health-4.1.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-webmvc/build/libs/spring-boot-webmvc-4.1.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-http-converter/build/libs/spring-boot-http-converter-4.1.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-integration/build/libs/spring-boot-integration-4.1.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-jackson/build/libs/spring-boot-jackson-4.1.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-liquibase/build/libs/spring-boot-liquibase-4.1.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-jdbc/build/libs/spring-boot-jdbc-4.1.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-micrometer-metrics/build/libs/spring-boot-micrometer-metrics-4.1.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-quartz/build/libs/spring-boot-quartz-4.1.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-reactor-netty/build/libs/spring-boot-reactor-netty-4.1.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-session/build/libs/spring-boot-session-4.1.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-tomcat/build/libs/spring-boot-tomcat-4.1.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-webflux/build/libs/spring-boot-webflux-4.1.0-SNAPSHOT.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.micrometer/micrometer-registry-prometheus/1.17.0-M3/2a1624735777e9c2a6f71165f37bf36a23e68d6a/micrometer-registry-prometheus-1.17.0-M3.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.micrometer/micrometer-core/1.17.0-M3/721251415b6cc453242a701aec05e1c19e9a355a/micrometer-core-1.17.0-M3.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.prometheus/prometheus-metrics-exposition-formats/1.5.0/f71f1ab81f51d93b8c37c51a709542bf0f1cece0/prometheus-metrics-exposition-formats-1.5.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework.restdocs/spring-restdocs-mockmvc/4.0.0/805d14afbdca694caa6322bf137fb6fbd30ed314/spring-restdocs-mockmvc-4.0.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework.restdocs/spring-restdocs-webtestclient/4.0.0/9a827e4790f292a8480a758ef1d425195ea81d66/spring-restdocs-webtestclient-4.0.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.junit.jupiter/junit-jupiter/6.0.3/da72f4bc0feccbca639b901ace26e3a62512ebec/junit-jupiter-6.0.3.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.mockito/mockito-junit-jupiter/5.23.0/e66b5f34ffea58bf4388aba58f66a209daeba4fd/mockito-junit-jupiter-5.23.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.junit.jupiter/junit-jupiter-engine/6.0.3/e26f7e17d06cfc85ba7643b5ad00c87d5f2084dd/junit-jupiter-engine-6.0.3.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.junit.jupiter/junit-jupiter-params/6.0.3/6cd3efadd171a3ddd70413868a9c3af988a45907/junit-jupiter-params-6.0.3.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.junit.jupiter/junit-jupiter-api/6.0.3/2e6cfb62db85350179f0408ed5270f7cdf8cefda/junit-jupiter-api-6.0.3.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.junit.platform/junit-platform-engine/6.0.3/101305612e7daa4ce978d3ba73fd02dd4a5f22d9/junit-platform-engine-6.0.3.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.junit.platform/junit-platform-commons/6.0.3/1093a7faa2ba47c28aa83f378d9a2083463bb20c/junit-platform-commons-6.0.3.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.junit.platform/junit-platform-launcher/6.0.3/4a721cdd640ebdaa4c6850f5eee0b0377cf698b0/junit-platform-launcher-6.0.3.jar:/home/runner/.gradle/caches/modules-2/files-2.1/ch.qos.logback/logback-classic/1.5.32/2b1042c50f508f2eb402bd4d22ccbdf94cc37d2e/logback-classic-1.5.32.jar:/home/runner/.gradle/caches/modules-2/files-2.1/com.h2database/h2/2.4.240/686180ad33981ad943fdc0ab381e619b2c2fdfe5/h2-2.4.240.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-resolver-provider/3.9.13/ab689aca61aaf3a27b048691a23ca64ebe913aec/maven-resolver-provider-3.9.13.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-model-builder/3.9.13/d4d3b2ce476a73f6ac6edc35f4f89be37d99f990/maven-model-builder-3.9.13.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.1.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-actuator/build/libs/spring-boot-actuator-4.1.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-transaction/build/libs/spring-boot-transaction-4.1.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-sql/build/libs/spring-boot-sql-4.1.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-micrometer-observation/build/libs/spring-boot-micrometer-observation-4.1.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-web-server/build/libs/spring-boot-web-server-4.1.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-netty/build/libs/spring-boot-netty-4.1.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-http-codec/build/libs/spring-boot-http-codec-4.1.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-servlet/build/libs/spring-boot-servlet-4.1.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-persistence/build/libs/spring-boot-persistence-4.1.0-SNAPSHOT.jar:/home/runner/work/spring-boot/spring-boot/core/spring-boot/build/libs/spring-boot-4.1.0-SNAPSHOT.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-test/7.0.6/fd012839666ea5696d9efda89717d5f3f134fefe/spring-test-7.0.6.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-context-support/7.0.6/33781e67eae13341a22a770a59a15eff68667e42/spring-context-support-7.0.6.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.flywaydb/flyway-core/12.1.1/190447faa199724be218414551ac78a54f79d1ac/flyway-core-12.1.1.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-webflux/7.0.6/3e9bbfe6782094172edf102e5f1811c547f0f8f7/spring-webflux-7.0.6.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-webmvc/7.0.6/da516a887d0fea326c16b07fb2519f7f112f8eda/spring-webmvc-7.0.6.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework.restdocs/spring-restdocs-core/4.0.0/541244975650a7f2630a2a098702a69f639cb359/spring-restdocs-core-4.0.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-web/7.0.6/2baeb353efd42374239cc45e8d02780d6c6e7a77/spring-web-7.0.6.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework.integration/spring-integration-core/7.1.0-M3/a73331050426635a0eb7f21eab983ec7c87d94ff/spring-integration-core-7.1.0-M3.jar:/home/runner/.gradle/caches/modules-2/files-2.1/tools.jackson.core/jackson-core/3.1.0/df0dc5d0bf720739ae7b6afeee2af2aabf88905b/jackson-core-3.1.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/tools.jackson.core/jackson-databind/3.1.0/59a342020cc4f5a49335c16820be6ed8ca8ee6c7/jackson-databind-3.1.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-jdbc/7.0.6/5640a8dd396b13e5ecc7ad222c0788eb0214a743/spring-jdbc-7.0.6.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.liquibase/liquibase-core/5.0.2/8a3433b9123d36108c212392f6eee5664120ca58/liquibase-core-5.0.2.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.quartz-scheduler/quartz/2.5.2/2c3a3d8dc34774607e73370352bb1c1beb82b71a/quartz-2.5.2.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.projectreactor.netty/reactor-netty-http/1.3.4/fe1c378abcc815a2a6574047e1d949753124aeb1/reactor-netty-http-1.3.4.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework.session/spring-session-core/4.1.0-M1/4e27053ad170a0da6bc2ea62e6e850b5d822bee0/spring-session-core-4.1.0-M1.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.tomcat.embed/tomcat-embed-core/11.0.18/a96bb1b8a21ee7e93ce01cce7fd63f8e7561ec92/tomcat-embed-core-11.0.18.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.10.0/e1a0b2e6db75401181c9c1c64c6d155ca5c6d608/json-path-2.10.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.assertj/assertj-core/3.27.7/2f4f64f054c9d618d4b1d89e7611559f5e2cfff7/assertj-core-3.27.7.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.23.0/a5cf3cf244300e4cd05f779827cf50d373a8460e/mockito-core-5.23.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.6/e722fa5455c1be437de1947d570506cb2bb142e9/spring-context-7.0.6.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-core-test/7.0.6/dc84b6cd877a64824bb70e47893fb03974989244/spring-core-test-7.0.6.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-tx/7.0.6/94e443fe301137d8fec6f8092e10ed62bd6432b3/spring-tx-7.0.6.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-aop/7.0.6/1b8358db4326013f8cfcbf22061aa076489dfbbe/spring-aop-7.0.6.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-messaging/7.0.6/9b1fe6eb94f75b85ba75242a24c145be8ffc3beb/spring-messaging-7.0.6.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-beans/7.0.6/e8433956653fd38cf0b1d8769484ca8411123713/spring-beans-7.0.6.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-expression/7.0.6/c00c73c545c81e2eae224a46a7c509fca74a2860/spring-expression-7.0.6.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-core/7.0.6/5e4e7fd5bee4be66a0786abe0c90419a713114b5/spring-core-7.0.6.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/net.bytebuddy/byte-buddy/1.18.7/8d80cadfcb9dfe1c9a04cc5c3064b4625bba9fa/byte-buddy-1.18.7.jar:/home/runner/.gradle/caches/modules-2/files-2.1/net.bytebuddy/byte-buddy-agent/1.18.7/e264cd5633dd6ce5ac2ae4f871ddd87f1359cdb2/byte-buddy-agent-1.18.7.jar:/home/runner/.gradle/caches/modules-2/files-2.1/commons-codec/commons-codec/1.21.0/d95f998db5f89900fe895daf6cd2cddcb2f1d64b/commons-codec-1.21.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/com.opencsv/opencsv/5.12.0/bc55d53c0961f8b191c96276e778a9ec67f7dd58/opencsv-5.12.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-text/1.15.0/9899093aa40f0199d6c39b131b8f087cdb37e399/commons-text-1.15.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-lang3/3.20.0/65897b3e5731220962e659e001904af3c3cbeba9/commons-lang3-3.20.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/commons-logging/commons-logging/1.3.6/63e78ca6cd446c0ad166d14f03ed99e7efb3896d/commons-logging-1.3.6.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.4/d6d2327f3817d9a33a3b6b8f2e15a96bc2e7afdc/jakarta.xml.bind-api-4.0.4.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.17.0-M3/d3807b4a87fc52d13a04b480484648922095f59f/micrometer-observation-1.17.0-M3.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.micrometer/micrometer-commons/1.17.0-M3/d48c5c07b78c9dc8547a8d378622576ea512ecb3/micrometer-commons-1.17.0-M3.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.projectreactor.netty/reactor-netty-core/1.3.4/6695d33dc22b8f7523aa6f952e78cdb62223916f/reactor-netty-core-1.3.4.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.projectreactor/reactor-core/3.8.4/7cd47ac9899628366bc8c65bd91dcbcb4dcdef2a/reactor-core-3.8.4.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.32/fdfb3ff9a842303d4a95207294a6c6bc64e2605d/logback-core-1.5.32.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.6/2bc14918a2f8d5414749ab12d0c590cd3198b8c1/snakeyaml-2.6.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-http2/4.2.10.Final/ce03862f1ce5e4bd5a8af688ac9f5146a8192867/netty-codec-http2-4.2.10.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-http3/4.2.10.Final/184732adcbe055968420c4f0ae84ac55d7a4ae89/netty-codec-http3-4.2.10.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-handler-proxy/4.2.10.Final/4bbc9268168336caee75955a53b37867c99555c7/netty-handler-proxy-4.2.10.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-http/4.2.10.Final/93e6b3df76177423742ed10d48612b59e46f0c8c/netty-codec-http-4.2.10.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-resolver-dns-native-macos/4.2.10.Final/2248e8e4c2515e6a6cd39dc1e047a6db27853d7e/netty-resolver-dns-native-macos-4.2.10.Final-osx-x86_64.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-resolver-dns-classes-macos/4.2.10.Final/5a651824c09feba5cee9c99bd0b46a4ffbad1ad4/netty-resolver-dns-classes-macos-4.2.10.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-resolver-dns/4.2.10.Final/7424b52366c642e833e4cd5846c6ef07d05eb5c2/netty-resolver-dns-4.2.10.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-transport-native-epoll/4.2.10.Final/e629961393a508daab9480f6f2ae7b79deb5ea66/netty-transport-native-epoll-4.2.10.Final-linux-x86_64.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-compression/4.2.10.Final/5cc88546ee2ac730041eb33dff868037c8e85e78/netty-codec-compression-4.2.10.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-native-quic/4.2.10.Final/5b9b0c3d98adff43db51bdf7e96b06732546c7f9/netty-codec-native-quic-4.2.10.Final-linux-x86_64.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-native-quic/4.2.10.Final/9a20d34319b3ea82432ce862b4d567e5df7f1123/netty-codec-native-quic-4.2.10.Final-linux-aarch_64.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-native-quic/4.2.10.Final/2b71f2360588cc57075ed35fe3684eb04a02a67c/netty-codec-native-quic-4.2.10.Final-osx-x86_64.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-native-quic/4.2.10.Final/b9ccc13af94185c895dbeafbb24e7fef0adab117/netty-codec-native-quic-4.2.10.Final-osx-aarch_64.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-native-quic/4.2.10.Final/552442784cc9304b6ffe6a6bcce05881012890bb/netty-codec-native-quic-4.2.10.Final-windows-x86_64.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-classes-quic/4.2.10.Final/348a01cb15365c3fa6ff704cdc67e1304291b263/netty-codec-classes-quic-4.2.10.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-handler/4.2.10.Final/730b1c0df761ecae4de489b974efe29135d996f5/netty-handler-4.2.10.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-dns/4.2.10.Final/693b6a173f4e510c00d784f80d309c25ba547aaa/netty-codec-dns-4.2.10.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-socks/4.2.10.Final/e5d86f1a262144797acdd875f8a3ca55f22125b2/netty-codec-socks-4.2.10.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-base/4.2.10.Final/e81b71d93024736f174397bff1fdd590e0aa9c44/netty-codec-base-4.2.10.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-transport-classes-epoll/4.2.10.Final/6d3396999238ce440c15c5258381f23b5f6083f3/netty-transport-classes-epoll-4.2.10.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-transport-native-unix-common/4.2.10.Final/8a8495c494ab2f5b0fdd93d2f670a1ea50a6b7de/netty-transport-native-unix-common-4.2.10.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-transport/4.2.10.Final/d9ce85a6b94fe584b0dec4b07230ac455ff975c1/netty-transport-4.2.10.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-buffer/4.2.10.Final/b9b67175347d45b1caa5525440258904e01fac22/netty-buffer-4.2.10.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-resolver/4.2.10.Final/888daac4608a9b5fa1a74763e0de88d0dbf459a4/netty-resolver-4.2.10.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-common/4.2.10.Final/c55e97d9bd061a2d88418d2d831e1fa39cb975e7/netty-common-4.2.10.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-model/3.9.13/26c1ad1d305ee6d3e3b0e81bb8124d3fb4c52030/maven-model-3.9.13.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-repository-metadata/3.9.13/dcb8ae5f9954a9a798588a96aec1b94436f4cf73/maven-repository-metadata-3.9.13.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-artifact/3.9.13/84700887f5cace819b2d5020b04f18317c57f812/maven-artifact-3.9.13.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.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.21.0/52a6f68fe5afe335cde95461dd5c3412f04996f7/commons-io-2.21.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-annotations/2.21/b1bc1868bf02dc0bd6c7836257a036a331005309/jackson-annotations-2.21.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.prometheus/prometheus-metrics-core/1.5.0/f9b11219513f663d7ad31f5934ab05f1bd88a582/prometheus-metrics-core-1.5.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.prometheus/prometheus-metrics-exposition-textformats/1.5.0/8097683d4fde8a9817edd908cad3f9ffd7e8a3e7/prometheus-metrics-exposition-textformats-1.5.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.prometheus/prometheus-metrics-model/1.5.0/293fa539127dc4094fdaaf3a9d618b0996c2dc97/prometheus-metrics-model-1.5.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.prometheus/prometheus-metrics-config/1.5.0/2e5c879754b8314bc3dce75073bb9991526d59c5/prometheus-metrics-config-1.5.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.prometheus/prometheus-metrics-tracer-common/1.5.0/86a99cc996a644ba500eb6d2fa4d27e8c8efc537/prometheus-metrics-tracer-common-1.5.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.codehaus.plexus/plexus-interpolation/1.29/5dd1b1fbaca263ad5baa169fbd8e804c789c9db5/plexus-interpolation-1.29.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-builder-support/3.9.13/fda379b97d5acd4caa4ae2707032f74959993fc6/maven-builder-support-3.9.13.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.eclipse.sisu/org.eclipse.sisu.inject/1.0.0/d9c2d6ff4b461ab9492edb1cd9d8239cfb41f4ca/org.eclipse.sisu.inject-1.0.0.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.9.1/2ceea6ab43bcae1979b2a6d85fc0ca429877e5ab/asm-9.9.1.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.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/25.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:spring-doc.cn

Path Type Description

activeProfilesspring-doc.cn

Arrayspring-doc.cn

Names of the active profiles, if any.spring-doc.cn

defaultProfilesspring-doc.cn

Arrayspring-doc.cn

Names of the default profiles, if any.spring-doc.cn

propertySourcesspring-doc.cn

Arrayspring-doc.cn

Property sources in order of precedence.spring-doc.cn

propertySources.[].namespring-doc.cn

Stringspring-doc.cn

Name of the property source.spring-doc.cn

propertySources.[].propertiesspring-doc.cn

Objectspring-doc.cn

Properties in the property source keyed by property name.spring-doc.cn

propertySources.[].properties.*.valuespring-doc.cn

Stringspring-doc.cn

Value of the property.spring-doc.cn

propertySources.[].properties.*.originspring-doc.cn

Stringspring-doc.cn

Origin of the property, if any.spring-doc.cn

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:spring-doc.cn

$ 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:spring-doc.cn

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:spring-doc.cn

Path Type Description

propertyspring-doc.cn

Objectspring-doc.cn

Property from the environment, if found.spring-doc.cn

property.sourcespring-doc.cn

Stringspring-doc.cn

Name of the source of the property.spring-doc.cn

property.valuespring-doc.cn

Stringspring-doc.cn

Value of the property.spring-doc.cn

activeProfilesspring-doc.cn

Arrayspring-doc.cn

Names of the active profiles, if any.spring-doc.cn

defaultProfilesspring-doc.cn

Arrayspring-doc.cn

Names of the default profiles, if any.spring-doc.cn

propertySourcesspring-doc.cn

Arrayspring-doc.cn

Property sources in order of precedence.spring-doc.cn

propertySources.[].namespring-doc.cn

Stringspring-doc.cn

Name of the property source.spring-doc.cn

propertySources.[].propertyspring-doc.cn

Objectspring-doc.cn

Property in the property source, if any.spring-doc.cn

propertySources.[].property.valuespring-doc.cn

Variesspring-doc.cn

Value of the property.spring-doc.cn

propertySources.[].property.originspring-doc.cn

Stringspring-doc.cn

Origin of the property, if any.spring-doc.cn