This version is still in development and is not considered stable yet. For the latest stable version, please use Spring Boot 3.5.5!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: 25207

{
  "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-M2.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-web-server-test/build/libs/spring-boot-web-server-test-4.0.0-M2.jar:/home/runner/work/spring-boot/spring-boot/core/spring-boot-test/build/libs/spring-boot-test-4.0.0-M2.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-actuator-autoconfigure/build/libs/spring-boot-actuator-autoconfigure-4.0.0-M2.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-cache/build/libs/spring-boot-cache-4.0.0-M2.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-flyway/build/libs/spring-boot-flyway-4.0.0-M2.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-health/build/libs/spring-boot-health-4.0.0-M2.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-webmvc/build/libs/spring-boot-webmvc-4.0.0-M2.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-http-converter/build/libs/spring-boot-http-converter-4.0.0-M2.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-integration/build/libs/spring-boot-integration-4.0.0-M2.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-jackson/build/libs/spring-boot-jackson-4.0.0-M2.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-liquibase/build/libs/spring-boot-liquibase-4.0.0-M2.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-jdbc/build/libs/spring-boot-jdbc-4.0.0-M2.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-micrometer-metrics/build/libs/spring-boot-micrometer-metrics-4.0.0-M2.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-quartz/build/libs/spring-boot-quartz-4.0.0-M2.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-reactor-netty/build/libs/spring-boot-reactor-netty-4.0.0-M2.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-session/build/libs/spring-boot-session-4.0.0-M2.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-tomcat/build/libs/spring-boot-tomcat-4.0.0-M2.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-webflux/build/libs/spring-boot-webflux-4.0.0-M2.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.micrometer/micrometer-registry-prometheus/1.16.0-M2/3629564c4748d61d3cbc05e81a95f2b3efdb6e32/micrometer-registry-prometheus-1.16.0-M2.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.micrometer/micrometer-core/1.16.0-M2/5c0fc8e682f2ade07f3501f3104e04a65a160be8/micrometer-core-1.16.0-M2.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-M2/1186507910ca7d7f83e645b0ce9e92f21f24c3ac/spring-restdocs-mockmvc-4.0.0-M2.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework.restdocs/spring-restdocs-webtestclient/4.0.0-M2/a98a3a825371b0407bb714acbce0721403852bfb/spring-restdocs-webtestclient-4.0.0-M2.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.skyscreamer/jsonassert/1.5.3/aaa43e0823d2a0e106e8754d6a9c4ab24e05e9bc/jsonassert-1.5.3.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.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-M2.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-actuator/build/libs/spring-boot-actuator-4.0.0-M2.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-tx/build/libs/spring-boot-tx-4.0.0-M2.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-sql/build/libs/spring-boot-sql-4.0.0-M2.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-micrometer-observation/build/libs/spring-boot-micrometer-observation-4.0.0-M2.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-web-server/build/libs/spring-boot-web-server-4.0.0-M2.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-netty/build/libs/spring-boot-netty-4.0.0-M2.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-http-codec/build/libs/spring-boot-http-codec-4.0.0-M2.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-servlet/build/libs/spring-boot-servlet-4.0.0-M2.jar:/home/runner/work/spring-boot/spring-boot/core/spring-boot/build/libs/spring-boot-4.0.0-M2.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-test/7.0.0-M8/3fd25c41ae69eb8e4c04c157bb76ffe1989000dc/spring-test-7.0.0-M8.jar:/home/runner/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.datatype/jackson-datatype-jsr310/2.20.0-rc1/9f9c6710857b01a165d9a6de77192ecb32c8be7b/jackson-datatype-jsr310-2.20.0-rc1.jar:/home/runner/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-core/2.20.0-rc1/790a8a47716213fa366752ea167fa1bea9fd58b/jackson-core-2.20.0-rc1.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.flywaydb/flyway-core/11.11.1/5884c8511044fbc90169c66877f185d1593b0f3a/flyway-core-11.11.1.jar:/home/runner/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-databind/2.20.0-rc1/fa6dda74c021c4b17158f66ce9e1fdb260455714/jackson-databind-2.20.0-rc1.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-context-support/7.0.0-M8/29e0c71da7d0dfe3f67f449865575d72a6ba08cf/spring-context-support-7.0.0-M8.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-webflux/7.0.0-M8/b908ecfcd6b1c47dcaba06ea39b0874e8b6eddda/spring-webflux-7.0.0-M8.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-webmvc/7.0.0-M8/8ec0a927117543185ff026ccbe42e630ee5b5bd1/spring-webmvc-7.0.0-M8.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework.restdocs/spring-restdocs-core/4.0.0-M2/fc1000b13c3c4674c0d195f544797ae2d932918f/spring-restdocs-core-4.0.0-M2.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-web/7.0.0-M8/3a7e347d45adeb40eb30fc3a7ed6ab96e57f5ec6/spring-web-7.0.0-M8.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework.integration/spring-integration-core/7.0.0-M2/410206dcafe969f1e49a382cfd952dcf6d4c8218/spring-integration-core-7.0.0-M2.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-jdbc/7.0.0-M8/b51399f3347cd9fbc6a6e1df1683f75388375cb9/spring-jdbc-7.0.0-M8.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-M6/c806e87cd3f0c41d101038efdebd7da12435e6c5/reactor-netty-http-1.3.0-M6.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.10/147dd053b2203150c1e13165d0560bf0dfaa7fc2/tomcat-embed-core-11.0.10.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.springframework/spring-context/7.0.0-M8/65cbc6c36df68b3ff9ebf359463f61788859f245/spring-context-7.0.0-M8.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-core-test/7.0.0-M8/4b9958ba3d9c26537fa2d1db8f2d670fd35ceab5/spring-core-test-7.0.0-M8.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-tx/7.0.0-M8/d2f302d1ee39526699c4fb8aec0e49509c901cfa/spring-tx-7.0.0-M8.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-aop/7.0.0-M8/821003563ecb80796ee394d7d97d81d636dc5c3/spring-aop-7.0.0-M8.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-messaging/7.0.0-M8/c80030ade0268316cfde5c5d8dd8972770bca8d7/spring-messaging-7.0.0-M8.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-beans/7.0.0-M8/6db8d5bf910781639f032801d30c458ea7d37145/spring-beans-7.0.0-M8.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-expression/7.0.0-M8/7f247b0eb36452c5c8fedfb044d58892b2c5ab5/spring-expression-7.0.0-M8.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-core/7.0.0-M8/a566e9e70bba9c2bd76d964c2972307c7dd6f558/spring-core-7.0.0-M8.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.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.3/fa165bd70cda600368eee31555222776a46b881f/jakarta.activation-api-2.1.3.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-M2/747f2826c5177b6eae6a7fff2289ff3d598ab8e9/micrometer-observation-1.16.0-M2.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.micrometer/micrometer-commons/1.16.0-M2/e8ee8f5e443d42802cb6e4353037d91b843fcbfc/micrometer-commons-1.16.0-M2.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.projectreactor.netty/reactor-netty-core/1.3.0-M6/28555f6457e47b08d860fbe2b0b47fb9777519af/reactor-netty-core-1.3.0-M6.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-M6/6a1a5c00b8df0fe4663c2c705e1ed00a5a9fe8ff/reactor-core-3.8.0-M6.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.4/e0666b825b796f85521f02360e77f4c92c5a7a07/snakeyaml-2.4.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework.retry/spring-retry/2.0.12/62a14736086ffd6f382f0df3bf066a5a34f174fa/spring-retry-2.0.12.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-http2/4.2.4.Final/b4799709023e809dc85f93c6162b786cf31b4a21/netty-codec-http2-4.2.4.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-handler-proxy/4.2.4.Final/6ea0887e31a0eaa13262a33a2451f67332c51dad/netty-handler-proxy-4.2.4.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-http/4.2.4.Final/4670107b2f6419d21cb7967a680671692f44157/netty-codec-http-4.2.4.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-resolver-dns-native-macos/4.2.4.Final/a1367c412944af174a023b85dd7f1c30e1408f6/netty-resolver-dns-native-macos-4.2.4.Final-osx-x86_64.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-resolver-dns-classes-macos/4.2.4.Final/62777e6d3638d4735761c76f6f07783b08e9ad0c/netty-resolver-dns-classes-macos-4.2.4.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-resolver-dns/4.2.4.Final/c7558327faa7c5767a6a688031ab6d8c71c098ae/netty-resolver-dns-4.2.4.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-transport-native-epoll/4.2.4.Final/4857c1eee50b94754443e33810fd5f6bcc758017/netty-transport-native-epoll-4.2.4.Final-linux-x86_64.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-handler/4.2.4.Final/2743026b7e760647960c40cea3a1e8cadcaca3d3/netty-handler-4.2.4.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-compression/4.2.4.Final/1ee714313d5a4828a9a5e91ef7b286b0ae70432d/netty-codec-compression-4.2.4.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-dns/4.2.4.Final/931c4501fb5ef81bc5ee9a9b0212e10164c71c95/netty-codec-dns-4.2.4.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-socks/4.2.4.Final/447f08b48a0991565e774bcbffcebe2df8b60a83/netty-codec-socks-4.2.4.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-base/4.2.4.Final/1ce749159854c881db5f72f20554b593303d6383/netty-codec-base-4.2.4.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-transport-classes-epoll/4.2.4.Final/1bcbe4f5b2bec41c5cf04efa9074a0c717882f78/netty-transport-classes-epoll-4.2.4.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-transport-native-unix-common/4.2.4.Final/8e84d47a372fdc928a50b865380a7198a0946782/netty-transport-native-unix-common-4.2.4.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-transport/4.2.4.Final/dcc86deff7735fe678a9159e3ba991cc85a6870b/netty-transport-4.2.4.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-buffer/4.2.4.Final/ddf4e915e4c7bc227dad3166e87e65c7c267489a/netty-buffer-4.2.4.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-resolver/4.2.4.Final/d6104fe65ef3411f07f664220e58396cdfc64cc8/netty-resolver-4.2.4.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-common/4.2.4.Final/2ab161f17d7dd66a1c8ac2f180a448c314790abb/netty-common-4.2.4.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/tools.jackson.core/jackson-core/3.0.0-rc8/bd4611906ed1c0079bd1d16edc76fb7149de244b/jackson-core-3.0.0-rc8.jar:/home/runner/.gradle/caches/modules-2/files-2.1/tools.jackson.core/jackson-databind/3.0.0-rc8/109454ad012e229afd32666bb69f695efff7d8f1/jackson-databind-3.0.0-rc8.jar:/home/runner/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-annotations/2.20-rc1/374f15ce6ee0e290f49eb2d6ac744dbacdaeacf/jackson-annotations-2.20-rc1.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/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: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

{"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"},"activeProfiles":[],"defaultProfiles":["default"],"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":{"value":"1000","origin":"class path resource [org/springframework/boot/actuate/docs/env/application.properties] - 1:29"}},{"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