For the latest stable version, please use Spring Boot 4.1.0!

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: 26413

{
  "activeProfiles" : [ ],
  "defaultProfiles" : [ "default" ],
  "propertySources" : [ {
    "name" : "servletContextInitParams",
    "properties" : { }
  }, {
    "name" : "systemProperties",
    "properties" : {
      "java.specification.version" : {
        "value" : "25"
      },
      "java.class.path" : {
        "value" : "/home/runner/.gradle/caches/9.5.0/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.7.jar:/home/runner/work/spring-boot/spring-boot/core/spring-boot-test/build/libs/spring-boot-test-4.0.7.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-actuator-autoconfigure/build/libs/spring-boot-actuator-autoconfigure-4.0.7.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-cache/build/libs/spring-boot-cache-4.0.7.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-flyway/build/libs/spring-boot-flyway-4.0.7.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-health/build/libs/spring-boot-health-4.0.7.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-webmvc/build/libs/spring-boot-webmvc-4.0.7.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-http-converter/build/libs/spring-boot-http-converter-4.0.7.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-integration/build/libs/spring-boot-integration-4.0.7.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-jackson/build/libs/spring-boot-jackson-4.0.7.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-liquibase/build/libs/spring-boot-liquibase-4.0.7.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-jdbc/build/libs/spring-boot-jdbc-4.0.7.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-micrometer-metrics/build/libs/spring-boot-micrometer-metrics-4.0.7.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-quartz/build/libs/spring-boot-quartz-4.0.7.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-reactor-netty/build/libs/spring-boot-reactor-netty-4.0.7.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-session/build/libs/spring-boot-session-4.0.7.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-tomcat/build/libs/spring-boot-tomcat-4.0.7.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-webflux/build/libs/spring-boot-webflux-4.0.7.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.micrometer/micrometer-registry-prometheus/1.16.6/21cd49780fe942aab916decd4d9ea18de0982c2d/micrometer-registry-prometheus-1.16.6.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.micrometer/micrometer-core/1.16.6/54c9debc8ab7453d5aaa6d211bfcfc308b55b1e/micrometer-core-1.16.6.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.prometheus/prometheus-metrics-exposition-formats/1.4.3/14eeb4e0a6a366d6b7562e4457e2a863b837b5bd/prometheus-metrics-exposition-formats-1.4.3.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework.restdocs/spring-restdocs-mockmvc/4.0.1/dcc2c2b92fa24d2222db8cfeed647dc3bc244bb7/spring-restdocs-mockmvc-4.0.1.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework.restdocs/spring-restdocs-webtestclient/4.0.1/632e53f13ac477d384f8b3e0f83f5cc0dfd46d63/spring-restdocs-webtestclient-4.0.1.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.20.0/58ed6603af5f8f53886d49be00264a3fdd1278d5/mockito-junit-jupiter-5.20.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.34/e598899bad5824511cd3019299254230468e1fa2/logback-classic-1.5.34.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.resolver/maven-resolver-supplier/1.9.27/538c7d2d09a33c374c1fc7ab27fa00f461ce26c4/maven-resolver-supplier-1.9.27.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-impl/1.9.27/876fc89223d9572cade60a1b8158846724548d07/maven-resolver-impl-1.9.27.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.maven.resolver/maven-resolver-connector-basic/1.9.27/219c1f8c3289b9382b1f86fc278430d3a22968c3/maven-resolver-connector-basic-1.9.27.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.maven.resolver/maven-resolver-transport-file/1.9.27/89a2b09002672807c05b3b10afccbcb9cfcd8486/maven-resolver-transport-file-1.9.27.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.maven.resolver/maven-resolver-transport-http/1.9.27/6931510aec55201631d9d904a7d4f8f81541a335/maven-resolver-transport-http-1.9.27.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.maven.resolver/maven-resolver-spi/1.9.27/fb64e47acdc73f938b4d5b6464ef7a6351f983d5/maven-resolver-spi-1.9.27.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.maven.resolver/maven-resolver-util/1.9.27/7ee4446af6aab27475765ec9c9dc1fb2b082af2b/maven-resolver-util-1.9.27.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.maven.resolver/maven-resolver-api/1.9.27/2fe7e86e3c193121789470507cf4fadd5bd7ad59/maven-resolver-api-1.9.27.jar:/home/runner/work/spring-boot/spring-boot/core/spring-boot-autoconfigure/build/libs/spring-boot-autoconfigure-4.0.7.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-actuator/build/libs/spring-boot-actuator-4.0.7.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-transaction/build/libs/spring-boot-transaction-4.0.7.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-sql/build/libs/spring-boot-sql-4.0.7.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-micrometer-observation/build/libs/spring-boot-micrometer-observation-4.0.7.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-web-server/build/libs/spring-boot-web-server-4.0.7.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-netty/build/libs/spring-boot-netty-4.0.7.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-http-codec/build/libs/spring-boot-http-codec-4.0.7.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-servlet/build/libs/spring-boot-servlet-4.0.7.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-persistence/build/libs/spring-boot-persistence-4.0.7.jar:/home/runner/work/spring-boot/spring-boot/core/spring-boot/build/libs/spring-boot-4.0.7.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-test/7.0.8/a69fb470b6fbf2960552150e4a37e6903dbd2f49/spring-test-7.0.8.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-context-support/7.0.8/1c9bd9da34fca09f3423d86f8e33bd9c099232eb/spring-context-support-7.0.8.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.flywaydb/flyway-core/11.14.1/869ad74f22948c22904fd99cb78b9d5b8b8e18b4/flyway-core-11.14.1.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-webflux/7.0.8/2b0d4cbfdf7de4fec2d2113b8ff29c23eea225cb/spring-webflux-7.0.8.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-webmvc/7.0.8/d08172cf66f9625a42935d596ca4c83d21265996/spring-webmvc-7.0.8.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework.restdocs/spring-restdocs-core/4.0.1/e711b16a002a2fcf1ce51dba773a9bd81ab51e11/spring-restdocs-core-4.0.1.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-web/7.0.8/d7cddac31ee023d25d37f48e2ff0e168cf635c14/spring-web-7.0.8.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework.integration/spring-integration-core/7.0.5/9fdb8654171a84acdab900b6cf93bff408f34a1c/spring-integration-core-7.0.5.jar:/home/runner/.gradle/caches/modules-2/files-2.1/tools.jackson.core/jackson-core/3.1.4/f9fd39204bd3d4922b42f6a54b81f46bd8ed575a/jackson-core-3.1.4.jar:/home/runner/.gradle/caches/modules-2/files-2.1/tools.jackson.core/jackson-databind/3.1.4/c7be3c757289893a791b2a4967ec09d1a8b6c576/jackson-databind-3.1.4.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-jdbc/7.0.8/f979da380cd01fd363510ca98a7f544d1959a914/spring-jdbc-7.0.8.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.liquibase/liquibase-core/5.0.3/2a2b324d218a847ec8fa688b75bc58d0b09f38e2/liquibase-core-5.0.3.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.6/fc29755df1a749bb639e99c9d9eb21f083940b64/reactor-netty-http-1.3.6.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework.session/spring-session-core/4.0.4/5416600e0bd0dde1a886ccbd186a2ddca7c97489/spring-session-core-4.0.4.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.tomcat.embed/tomcat-embed-core/11.0.22/cc7307efaa60c0d31784bf053ec4aa48a404f44b/tomcat-embed-core-11.0.22.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.20.0/a32f446f38acf636363c5693db6498047731b9e0/mockito-core-5.20.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.8/6c58b590fd8d71afc36797cf6555e82500f1eb64/spring-context-7.0.8.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-core-test/7.0.8/9a5d4b0eb4a5e1023b2fedecd8c75142a3694ba7/spring-core-test-7.0.8.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-tx/7.0.8/96c66acfb3920457421a9cb3648a32e62f42f815/spring-tx-7.0.8.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-aop/7.0.8/b73e58e9b7dbc4db6b4ebbe3336be0e901b0d261/spring-aop-7.0.8.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-messaging/7.0.8/2379224f4c36aeaeceb706750138b8ca9d265916/spring-messaging-7.0.8.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-beans/7.0.8/829cdf4c82a9409e0e10922b9e57e2ef12d5f04d/spring-beans-7.0.8.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-expression/7.0.8/bb844eefd513820e356b575d7ea0f7084147af59/spring-expression-7.0.8.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-core/7.0.8/25f5ebd179f92d7d12779e3761c96da4b0109ad/spring-core-7.0.8.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.21.4/9e495680be707d466527d734368ebf36e464da2/jackson-databind-2.21.4.jar:/home/runner/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-core/2.21.4/56a503ba45016714394807ea89f95f5093760089/jackson-core-2.21.4.jar:/home/runner/.gradle/caches/modules-2/files-2.1/net.bytebuddy/byte-buddy/1.17.8/af5735f63d00ca47a9375fae5c7471a36331c6ed/byte-buddy-1.17.8.jar:/home/runner/.gradle/caches/modules-2/files-2.1/net.bytebuddy/byte-buddy-agent/1.17.8/f09415827a71be7ed621c7bd02550678f28bc81c/byte-buddy-agent-1.17.8.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.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.19.0/d6524b169a6574cd253760c472d419b47bfd37e6/commons-lang3-3.19.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/com.google.code.gson/gson/2.13.2/48b8230771e573b54ce6e867a9001e75977fe78e/gson-2.13.2.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.5/161811f36cad3c65991502e80317f2f6703361df/jakarta.xml.bind-api-4.0.5.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.6/b27b7a8bcf517739465f01d4e4531e825b542ee3/micrometer-observation-1.16.6.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.micrometer/micrometer-commons/1.16.6/44a1653f97e278a4815b378619bbd2d9764c97e0/micrometer-commons-1.16.6.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.projectreactor.netty/reactor-netty-core/1.3.6/f3dd398789a99982ee3cb4c9a29c31b689173313/reactor-netty-core-1.3.6.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.projectreactor/reactor-core/3.8.6/76285d63d5da4ed8679357628dd5309b0feb77ff/reactor-core-3.8.6.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.34/378692f76c337b3325c15bffb89e013dc1f897b4/logback-core-1.5.34.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.27/72c89ad87be374309a7308ee144949360ed482e8/maven-resolver-named-locks-1.9.27.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.slf4j/slf4j-api/2.0.18/78a9e7a37cd6360e0b818e86341b24123d28d4df/slf4j-api-2.0.18.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.15.Final/c70540243427c8c952473f55813c6d459817de42/netty-codec-http2-4.2.15.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-http3/4.2.15.Final/39c3e24013ecb21832aebb36609de45c5cb111cd/netty-codec-http3-4.2.15.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-handler-proxy/4.2.15.Final/31e63e04af11da75793ecbfc126d7691b8771d01/netty-handler-proxy-4.2.15.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-http/4.2.15.Final/e611826aa054371bb9a17f27bdb05755a4cac5f0/netty-codec-http-4.2.15.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-resolver-dns-native-macos/4.2.15.Final/65b613177fd074641b1effa2e5ee41af4d60c751/netty-resolver-dns-native-macos-4.2.15.Final-osx-x86_64.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-resolver-dns-classes-macos/4.2.15.Final/f1aaeafaf3fc1f1f972b27f3728fd6382edfaade/netty-resolver-dns-classes-macos-4.2.15.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-resolver-dns/4.2.15.Final/1b3eaebe62b905c780e181b5f3fd18c013ca73a4/netty-resolver-dns-4.2.15.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-transport-native-epoll/4.2.15.Final/ce256127f8ed3f076756f1f4dcb5877d65d1f1c2/netty-transport-native-epoll-4.2.15.Final-linux-x86_64.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-compression/4.2.15.Final/89fc4a20b7ae6af974304b1695405e62c4f9b16d/netty-codec-compression-4.2.15.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-native-quic/4.2.15.Final/85505bf360eb6b1bdea085dd812138c8657446e8/netty-codec-native-quic-4.2.15.Final-linux-x86_64.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-native-quic/4.2.15.Final/e0c842516134e72f462d88637df30989f0e55a7b/netty-codec-native-quic-4.2.15.Final-linux-aarch_64.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-native-quic/4.2.15.Final/65e70a2bc3f595b6310d44f1f5a06c9992bca44e/netty-codec-native-quic-4.2.15.Final-osx-x86_64.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-native-quic/4.2.15.Final/7838c59515f0df3beea238f4a6112518a69708c4/netty-codec-native-quic-4.2.15.Final-osx-aarch_64.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-native-quic/4.2.15.Final/73a7f8cc37fa82f1d1c6f97b58eae2a6d68e11fa/netty-codec-native-quic-4.2.15.Final-windows-x86_64.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-classes-quic/4.2.15.Final/4268161f4676c79e657eda74141c309aaaa2c9a7/netty-codec-classes-quic-4.2.15.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-handler/4.2.15.Final/d5344afd1148e3b9927a74be019605ebb0937a93/netty-handler-4.2.15.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-dns/4.2.15.Final/3da23523d91eaf8af81d2b9080a61d9b1af0762c/netty-codec-dns-4.2.15.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-socks/4.2.15.Final/5d6dc38231104f28b6ba48b77d2f90b93cdb6fe7/netty-codec-socks-4.2.15.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-base/4.2.15.Final/e97149fdd5fb04858efa90e314651c8d700dc68b/netty-codec-base-4.2.15.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-transport-classes-epoll/4.2.15.Final/44bafba9c9993800e955b365bba4981326f3f3b1/netty-transport-classes-epoll-4.2.15.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-transport-native-unix-common/4.2.15.Final/efb6943b4de9e0226a5ac35330f232605424af02/netty-transport-native-unix-common-4.2.15.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-transport/4.2.15.Final/a000c3a6196ee40207b73ac619dcb339409dd62f/netty-transport-4.2.15.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-buffer/4.2.15.Final/2beb620803bf871cda2dd5d46b8f831e8015dd34/netty-buffer-4.2.15.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-resolver/4.2.15.Final/b961a16d379b508b473e064ba06842bba280f4e3/netty-resolver-4.2.15.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-common/4.2.15.Final/7222492c1af9c2d4d78d521eea340a619e242fda/netty-common-4.2.15.Final.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.22.0/5b1e18bc0ad651ed878029d83f88d9c8189fd51e/commons-io-2.22.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.4.3/1f00dc12e0bef05dff593a9abd7a4d626b675b0b/prometheus-metrics-core-1.4.3.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.prometheus/prometheus-metrics-exposition-textformats/1.4.3/3a4f58da44fdb1a26bbda60cf38930db62f2f887/prometheus-metrics-exposition-textformats-1.4.3.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.prometheus/prometheus-metrics-model/1.4.3/b18da634ccdc033468c0a17e56996de09b4e6b36/prometheus-metrics-model-1.4.3.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.prometheus/prometheus-metrics-config/1.4.3/785bf741491702f0e755a6a5c9c58a8127db0683/prometheus-metrics-config-1.4.3.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.prometheus/prometheus-metrics-tracer-common/1.4.3/67af5fc22c23e695d986a6301e61964efe9c9f80/prometheus-metrics-tracer-common-1.4.3.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/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/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.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/com.google.errorprone/error_prone_annotations/2.41.0/4381275efdef6ddfae38f002c31e84cd001c97f0/error_prone_annotations-2.41.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.3-11/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

activeProfiles

Array

Names of the active profiles, if any.

defaultProfiles

Array

Names of the default profiles, if any.

propertySources

Array

Property sources in order of precedence.

propertySources.[].name

String

Name of the property source.

propertySources.[].properties

Object

Properties in the property source keyed by property name.

propertySources.[].properties.*.value

String

Value of the property.

propertySources.[].properties.*.origin

String

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

Object

Property from the environment, if found.

property.source

String

Name of the source of the property.

property.value

String

Value of the property.

activeProfiles

Array

Names of the active profiles, if any.

defaultProfiles

Array

Names of the default profiles, if any.

propertySources

Array

Property sources in order of precedence.

propertySources.[].name

String

Name of the property source.

propertySources.[].property

Object

Property in the property source, if any.

propertySources.[].property.value

Varies

Value of the property.

propertySources.[].property.origin

String

Origin of the property, if any.