Configuration properties

The configprops endpoint provides information about configuration options that can be configured through application properties. It basically is a collated list of all @ConfigurationProperties. ;The following screenshot shows configprops in HAL Browser:

To illustrate a known example, the following section from the service response shows the configuration options available for Spring MVC:

"spring.mvc-  org.springframework.boot.autoconfigure.web.WebMvcProperties": {
"prefix": "spring.mvc",
"properties": {
"dateFormat": null,
"servlet": {
"loadOnStartup": -1
},
"staticPathPattern": "/**",
"dispatchOptionsRequest": true,
"dispatchTraceRequest": false,
"locale": null,
"ignoreDefaultModelOnRedirect": true,
"logResolvedException": true,
"async": {
"requestTimeout": null
},
"messageCodesResolverFormat": null,
"mediaTypes": {},
"view": {
"prefix": null,
"suffix": null
},
"localeResolver": "ACCEPT_HEADER",
"throwExceptionIfNoHandlerFound": false
}
}
To provide configuration for Spring MVC, we combine the prefix with the path in properties. For example, to configure loadOnStartup, we use a property with the name spring.mvc.servlet.loadOnStartup.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset