|
For the latest stable version, please use Spring Boot 4.1.0! |
Configuration Properties (configprops)
The configprops endpoint provides information about the application’s @ConfigurationProperties beans.
Retrieving All @ConfigurationProperties Beans
To retrieve all of the @ConfigurationProperties beans, make a GET request to /actuator/configprops, as shown in the following curl-based example:
$ curl 'http://localhost:8080/actuator/configprops' -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: 4550
{
"contexts" : {
"application" : {
"beans" : {
"spring.web-org.springframework.boot.autoconfigure.web.WebProperties" : {
"prefix" : "spring.web",
"properties" : {
"localeResolver" : "ACCEPT_HEADER",
"resources" : {
"staticLocations" : [ "classpath:/META-INF/resources/", "classpath:/resources/", "classpath:/static/", "classpath:/public/" ],
"addMappings" : true,
"chain" : {
"cache" : true,
"compressed" : false,
"strategy" : {
"fixed" : {
"enabled" : false,
"paths" : [ "/**" ]
},
"content" : {
"enabled" : false,
"paths" : [ "/**" ]
}
}
},
"cache" : {
"cachecontrol" : { },
"useLastModified" : true
}
}
},
"inputs" : {
"localeResolver" : { },
"resources" : {
"staticLocations" : [ { }, { }, { }, { } ],
"addMappings" : { },
"chain" : {
"cache" : { },
"compressed" : { },
"strategy" : {
"fixed" : {
"enabled" : { },
"paths" : [ { } ]
},
"content" : {
"enabled" : { },
"paths" : [ { } ]
}
}
},
"cache" : {
"cachecontrol" : { },
"useLastModified" : { }
}
}
}
},
"spring.mvc-org.springframework.boot.autoconfigure.web.servlet.WebMvcProperties" : {
"prefix" : "spring.mvc",
"properties" : {
"contentnegotiation" : {
"favorParameter" : false,
"mediaTypes" : { },
"defaultContentTypes" : [ ]
},
"servlet" : {
"path" : "/",
"loadOnStartup" : -1
},
"format" : { },
"staticPathPattern" : "/**",
"dispatchOptionsRequest" : true,
"dispatchTraceRequest" : false,
"problemdetails" : {
"enabled" : false
},
"logResolvedException" : false,
"webjarsPathPattern" : "/webjars/**",
"async" : { },
"view" : { },
"publishRequestHandledEvents" : true,
"logRequestDetails" : false,
"pathmatch" : {
"matchingStrategy" : "PATH_PATTERN_PARSER"
}
},
"inputs" : {
"contentnegotiation" : {
"favorParameter" : { },
"mediaTypes" : { },
"defaultContentTypes" : [ ]
},
"servlet" : {
"path" : { },
"loadOnStartup" : { }
},
"format" : { },
"staticPathPattern" : { },
"dispatchOptionsRequest" : { },
"dispatchTraceRequest" : { },
"problemdetails" : {
"enabled" : { }
},
"logResolvedException" : { },
"webjarsPathPattern" : { },
"async" : { },
"view" : { },
"publishRequestHandledEvents" : { },
"logRequestDetails" : { },
"pathmatch" : {
"matchingStrategy" : { }
}
}
},
"spring.jackson-org.springframework.boot.autoconfigure.jackson.JacksonProperties" : {
"prefix" : "spring.jackson",
"properties" : {
"serialization" : { },
"visibility" : { },
"parser" : { },
"constructorDetector" : "DEFAULT",
"datatype" : {
"jsonNode" : { },
"enum" : { }
},
"deserialization" : { },
"generator" : { },
"mapper" : { }
},
"inputs" : {
"serialization" : { },
"visibility" : { },
"parser" : { },
"constructorDetector" : { },
"datatype" : {
"jsonNode" : { },
"enum" : { }
},
"deserialization" : { },
"generator" : { },
"mapper" : { }
}
}
}
}
}
}
Response Structure
The response contains details of the application’s @ConfigurationProperties beans.
The following table describes the structure of the response:
| Path | Type | Description |
|---|---|---|
|
|
Application contexts keyed by id. |
|
|
|
|
|
Prefix applied to the names of the bean’s properties. |
|
|
Properties of the bean as name-value pairs. |
|
|
Origin and value of the configuration property used when binding to this bean. |
|
|
Id of the parent application context, if any. |
Retrieving @ConfigurationProperties Beans By Prefix
To retrieve the @ConfigurationProperties beans mapped under a certain prefix, make a GET request to /actuator/configprops/{prefix}, as shown in the following curl-based example:
$ curl 'http://localhost:8080/actuator/configprops/spring.jackson' -i -X GET
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: 966
{
"contexts" : {
"application" : {
"beans" : {
"spring.jackson-org.springframework.boot.autoconfigure.jackson.JacksonProperties" : {
"prefix" : "spring.jackson",
"properties" : {
"serialization" : { },
"visibility" : { },
"parser" : { },
"constructorDetector" : "DEFAULT",
"datatype" : {
"jsonNode" : { },
"enum" : { }
},
"deserialization" : { },
"generator" : { },
"mapper" : { }
},
"inputs" : {
"serialization" : { },
"visibility" : { },
"parser" : { },
"constructorDetector" : { },
"datatype" : {
"jsonNode" : { },
"enum" : { }
},
"deserialization" : { },
"generator" : { },
"mapper" : { }
}
}
}
}
}
}
The {prefix} does not need to be exact, a more general prefix will return all beans mapped under that prefix stem.
|
Response Structure
The response contains details of the application’s @ConfigurationProperties beans.
The following table describes the structure of the response:
| Path | Type | Description |
|---|---|---|
|
|
Application contexts keyed by id. |
|
|
|
|
|
Prefix applied to the names of the bean’s properties. |
|
|
Properties of the bean as name-value pairs. |
|
|
Origin and value of the configuration property used when binding to this bean. |
|
|
Id of the parent application context, if any. |