このバージョンはまだ開発中であり、まだ安定しているとは見なされていません。最新の安定バージョンについては、Spring Boot 3.5.4 を使用してください! |
環境 (env
)
env
エンドポイントは、アプリケーションの Environment
に関する情報を提供します。
環境全体を取得する
環境全体を取得するには、次の curl ベースの例に示すように、GET
リクエストを /actuator/env
に作成します。
$ curl 'http://localhost:8080/actuator/env' -i -X GET
結果のレスポンスは次のようになります。
HTTP/1.1 200 OK
Content-Type: application/vnd.spring-boot.actuator.v3+json
Content-Length: 24685
{
"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-M1.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-web-server-test/build/libs/spring-boot-web-server-test-4.0.0-M1.jar:/home/runner/work/spring-boot/spring-boot/core/spring-boot-test/build/libs/spring-boot-test-4.0.0-M1.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-actuator-autoconfigure/build/libs/spring-boot-actuator-autoconfigure-4.0.0-M1.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-cache/build/libs/spring-boot-cache-4.0.0-M1.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-flyway/build/libs/spring-boot-flyway-4.0.0-M1.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-health/build/libs/spring-boot-health-4.0.0-M1.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-webmvc/build/libs/spring-boot-webmvc-4.0.0-M1.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-http-converter/build/libs/spring-boot-http-converter-4.0.0-M1.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-integration/build/libs/spring-boot-integration-4.0.0-M1.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-jackson/build/libs/spring-boot-jackson-4.0.0-M1.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-liquibase/build/libs/spring-boot-liquibase-4.0.0-M1.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-jdbc/build/libs/spring-boot-jdbc-4.0.0-M1.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-metrics/build/libs/spring-boot-metrics-4.0.0-M1.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-quartz/build/libs/spring-boot-quartz-4.0.0-M1.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-reactor-netty/build/libs/spring-boot-reactor-netty-4.0.0-M1.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-session/build/libs/spring-boot-session-4.0.0-M1.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-tomcat/build/libs/spring-boot-tomcat-4.0.0-M1.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-webflux/build/libs/spring-boot-webflux-4.0.0-M1.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.micrometer/micrometer-registry-prometheus/1.16.0-M1/1203a9393c583b6503fa4c5a4e0585cd1b58d07c/micrometer-registry-prometheus-1.16.0-M1.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.micrometer/micrometer-core/1.16.0-M1/787bc8ec5f6bf02cfd6a4356f22f7eb719eddc15/micrometer-core-1.16.0-M1.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.prometheus/prometheus-metrics-exposition-formats/1.3.10/9f8433c962ff720dc2c83f6c2e8af069dd36a898/prometheus-metrics-exposition-formats-1.3.10.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework.restdocs/spring-restdocs-mockmvc/4.0.0-M1/9c949491cc9433664e73d6bcf5268ca65da38521/spring-restdocs-mockmvc-4.0.0-M1.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework.restdocs/spring-restdocs-webtestclient/4.0.0-M1/ab96b85c921cc17bb9f5c1c2bb9810bda0577fae/spring-restdocs-webtestclient-4.0.0-M1.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.18.0/18a6cbc02f0a65c93e650df6911e4b7d7621071e/mockito-junit-jupiter-5.18.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-M1.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-actuator/build/libs/spring-boot-actuator-4.0.0-M1.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-tx/build/libs/spring-boot-tx-4.0.0-M1.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-sql/build/libs/spring-boot-sql-4.0.0-M1.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-observation/build/libs/spring-boot-observation-4.0.0-M1.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-web-server/build/libs/spring-boot-web-server-4.0.0-M1.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-netty/build/libs/spring-boot-netty-4.0.0-M1.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-http-codec/build/libs/spring-boot-http-codec-4.0.0-M1.jar:/home/runner/work/spring-boot/spring-boot/module/spring-boot-servlet/build/libs/spring-boot-servlet-4.0.0-M1.jar:/home/runner/work/spring-boot/spring-boot/core/spring-boot/build/libs/spring-boot-4.0.0-M1.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-test/7.0.0-M7/2efbb61bc7b525895cdef79b9699ed85b927bf00/spring-test-7.0.0-M7.jar:/home/runner/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.datatype/jackson-datatype-jsr310/2.19.2/72e73f048b36d9df82aef146bf8b2ae63b2e28e2/jackson-datatype-jsr310-2.19.2.jar:/home/runner/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-annotations/2.19.2/c5381f11988ae3d424b197a26087d86067b6d7d/jackson-annotations-2.19.2.jar:/home/runner/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-core/2.19.2/50f3b4bd59b9ff51a0ed493e7b5abaf5c39709bf/jackson-core-2.19.2.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.flywaydb/flyway-core/11.10.3/b3b9dc3f274bfdb89562a974c5700b4cb2167427/flyway-core-11.10.3.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework.restdocs/spring-restdocs-core/4.0.0-M1/a8f8be8c3fdce11a904dc97acc3b53b2652e4f36/spring-restdocs-core-4.0.0-M1.jar:/home/runner/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-databind/2.19.2/46509399d28f57ca32c6bb4b0d4e10e8f062051e/jackson-databind-2.19.2.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-context-support/7.0.0-M7/b24cc86cc2d98c65e3de41b7ba8b48154dc85011/spring-context-support-7.0.0-M7.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-webflux/7.0.0-M7/3c2f82dc1db771c4d3c481ab5b52497535d1887c/spring-webflux-7.0.0-M7.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-webmvc/7.0.0-M7/58fbd936ae0b0282b3763d66f0c84214c05b820d/spring-webmvc-7.0.0-M7.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-web/7.0.0-M7/eaad68ab3005739a05b297eb5f0262091237eca4/spring-web-7.0.0-M7.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework.integration/spring-integration-core/7.0.0-M1/16b58db2b878189cd2b490b0686c20c7e63508a4/spring-integration-core-7.0.0-M1.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-jdbc/7.0.0-M7/fe32dea93511c519f26d720a785bdc7183dd590e/spring-jdbc-7.0.0-M7.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-M5/9514c6f52678886ad1783998d922fc57eab9a3d5/reactor-netty-http-1.3.0-M5.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework.session/spring-session-core/4.0.0-M1/da731021c46e13101d83c3a45981a4afb148362c/spring-session-core-4.0.0-M1.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.apache.tomcat.embed/tomcat-embed-core/11.0.9/f84d32975b975a9a16344468ca92d9fe0d7170ca/tomcat-embed-core-11.0.9.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.3/31f5d58a202bd5df4993fb10fa2cffd610c20d6f/assertj-core-3.27.3.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.18.0/ab47dbbf954ffa2501f29000600742098617272d/mockito-core-5.18.0.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-context/7.0.0-M7/f0fe90989ce793b387a2787232d28ba1a709eb39/spring-context-7.0.0-M7.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-core-test/7.0.0-M7/de0211268226b8b7ca2e65896b129008fd062f27/spring-core-test-7.0.0-M7.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-tx/7.0.0-M7/d06885cb17da36179b7973da037a842685a30be3/spring-tx-7.0.0-M7.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-aop/7.0.0-M7/c4d7d5a9ce1910e3c0ec7f9dc6c400cbf1f0b880/spring-aop-7.0.0-M7.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-messaging/7.0.0-M7/5dd2157d84205a4000404221bb6cbe6dafeeb5d9/spring-messaging-7.0.0-M7.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-beans/7.0.0-M7/e6a428de959f8bcc5e86c284c28e6eaf19931573/spring-beans-7.0.0-M7.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-expression/7.0.0-M7/ac193b664e91d6c2492b6cf2771202ce10d7226a/spring-expression-7.0.0-M7.jar:/home/runner/.gradle/caches/modules-2/files-2.1/org.springframework/spring-core/7.0.0-M7/b8e0937fe7cfedb69d6185d9a1582fc6e3e18c2/spring-core-7.0.0-M7.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.6/8c70cbc6950b2ae5291a98d5003e06406d633803/byte-buddy-1.17.6.jar:/home/runner/.gradle/caches/modules-2/files-2.1/net.bytebuddy/byte-buddy-agent/1.17.6/17b32fd9f57deef02842f7f05abc4ad8127fe34e/byte-buddy-agent-1.17.6.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/net.minidev/json-smart/2.5.2/95d166b18f95907be0f46cdb9e1c0695eed03387/json-smart-2.5.2.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.netty/reactor-netty-core/1.3.0-M5/43c7a6fba6d7c4090c515ba1219817a1af942b1c/reactor-netty-core-1.3.0-M5.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.projectreactor/reactor-core/3.8.0-M5/901692122051b0217440f9ea0cff7e3835e44712/reactor-core-3.8.0-M5.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.micrometer/micrometer-observation/1.16.0-M1/d84a2587708fc4b42b00f0017dc71242d5a3023/micrometer-observation-1.16.0-M1.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-http2/4.2.3.Final/1de97f915fb42748f237ec79ea93ce62e4c2e1bb/netty-codec-http2-4.2.3.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-handler-proxy/4.2.3.Final/4d2c0a2c666ede3aa892253619dac58f0dcb379e/netty-handler-proxy-4.2.3.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-http/4.2.3.Final/cadd9d990127d4c1889e17ff008e107c6685454f/netty-codec-http-4.2.3.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-resolver-dns-native-macos/4.2.3.Final/5f340a3f55e9d63b8c43ef11990bcf9ff5c61d6e/netty-resolver-dns-native-macos-4.2.3.Final-osx-x86_64.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-resolver-dns-classes-macos/4.2.3.Final/eb883f6f5b23f14887fd885ca810bf44b680adcb/netty-resolver-dns-classes-macos-4.2.3.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-resolver-dns/4.2.3.Final/e4f0133a3a6e8bd236633d87c5bd41f3689b3aab/netty-resolver-dns-4.2.3.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-transport-native-epoll/4.2.3.Final/48a792d0ffdb6a545bb9b062e07832c75b31ee8/netty-transport-native-epoll-4.2.3.Final-linux-x86_64.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-handler/4.2.3.Final/20b5062d40d52e73b76bdf5baba238c758cbfd44/netty-handler-4.2.3.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-compression/4.2.3.Final/d6c53b4ab2b3e3bc33b37d9da36fa70202ebab96/netty-codec-compression-4.2.3.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-dns/4.2.3.Final/c4de7dde10689a449a4aa6b7c8bce0c0f8657513/netty-codec-dns-4.2.3.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-socks/4.2.3.Final/5ad4c51a2780a63dd6587c15fde94e4b97e6dea0/netty-codec-socks-4.2.3.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-base/4.2.3.Final/ace65f41ef5cb68fe989591c7882d772fda0b7a5/netty-codec-base-4.2.3.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-transport-classes-epoll/4.2.3.Final/68ff55b2cf495f4411bdfcec5635f8074bcd5480/netty-transport-classes-epoll-4.2.3.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-transport-native-unix-common/4.2.3.Final/ce235bc37cc6a1eba44b247f704049d0f47de15a/netty-transport-native-unix-common-4.2.3.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-transport/4.2.3.Final/917f438748d834068bce8a0ff986c2f8057d4551/netty-transport-4.2.3.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-buffer/4.2.3.Final/26fcbd83f5d295613cb961315e5734e85b7e84e4/netty-buffer-4.2.3.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-resolver/4.2.3.Final/2c5a2227cd73f07885d5a4bd4cc8354fb1fdd4c7/netty-resolver-4.2.3.Final.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.netty/netty-common/4.2.3.Final/ec50c6854dff52674ba3c218de1323191775c4ae/netty-common-4.2.3.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/io.micrometer/micrometer-commons/1.16.0-M1/acbc3d385b96e6c9a8914479e7f1874149a216d0/micrometer-commons-1.16.0-M1.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/io.prometheus/prometheus-metrics-core/1.3.10/30c645782bc458a4868f59a9218c8395250a9f69/prometheus-metrics-core-1.3.10.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.prometheus/prometheus-metrics-exposition-textformats/1.3.10/7475c21ee94b4c46ff0394a2df02b3d2c5443690/prometheus-metrics-exposition-textformats-1.3.10.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.prometheus/prometheus-metrics-config/1.3.10/4fe03e3cc60188a32385bbd4559368842815e435/prometheus-metrics-config-1.3.10.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.prometheus/prometheus-metrics-model/1.3.10/e74c144f68e0258cbbdea64d4e387e65ebae6329/prometheus-metrics-model-1.3.10.jar:/home/runner/.gradle/caches/modules-2/files-2.1/io.prometheus/prometheus-metrics-tracer-common/1.3.10/abf6e4d1a41d96e37b200606e121697751794a45/prometheus-metrics-tracer-common-1.3.10.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.5.2/ce16fd235cfee48e67eda33e684423bba09f7d07/accessors-smart-2.5.2.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" : { }
} ]
}
この例では、機密値のサニタイズはオフになっています。 |
レスポンス構造
レスポンスには、アプリケーションの Environment
の詳細が含まれます。次の表に、レスポンスの構造を示します。
パス | タイプ | 説明 |
---|---|---|
|
| アクティブなプロファイルの名前(ある場合)。 |
|
| デフォルトプロファイルの名前 (存在する場合)。 |
|
| 優先度順のプロパティソース。 |
|
| プロパティソースの名前。 |
|
| プロパティ名をキーとするプロパティソースのプロパティ。 |
|
| プロパティの値。 |
|
| プロパティの起源(ある場合)。 |
単一のプロパティを取得する
単一のプロパティを取得するには、次の curl ベースの例に示すように、GET
リクエストを /actuator/env/{property.name}
に作成します。
$ curl 'http://localhost:8080/actuator/env/com.example.cache.max-size' -i -X GET
上記の例では、com.example.cache.max-size
という名前のプロパティに関する情報を取得します。結果のレスポンスは次のようになります。
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"}]}
この例では、機密値のサニタイズはオフになっています。 |
レスポンス構造
レスポンスには、リクエストされたプロパティの詳細が含まれます。次の表に、レスポンスの構造を示します。
パス | タイプ | 説明 |
---|---|---|
|
| 環境のプロパティ(見つかった場合)。 |
|
| プロパティのソースの名前。 |
|
| プロパティの値。 |
|
| アクティブなプロファイルの名前(ある場合)。 |
|
| デフォルトプロファイルの名前 (存在する場合)。 |
|
| 優先度順のプロパティソース。 |
|
| プロパティソースの名前。 |
|
| プロパティソース内のプロパティ(ある場合)。 |
|
| プロパティの値。 |
|
| プロパティの起源(ある場合)。 |