• Andy Wilkinson's avatar
    Ensure that, where appropriate, actuator endpoints always produce JSON · 2109559f
    Andy Wilkinson authored
    Previously, the Actuator’s endpoints did not specify a produces
    attribute on their request mappings. With Jackson’s XML binding on the
    classpath, this would lead to requests made by a browser receiving
    application/xml responses (due to the Accept header indicating that
    application/xml is preferred). This was problematic as some of the
    response payloads were not legal xml. Problems included XML tags
    beginning with ‘\’ or containing ‘#’.
    
    This commit updates the endpoints to specify that they produce
    application/json. The environment and metrics endpoints have also been
    updated so that always return a JSON object, even when they are
    returning a single entry. This consistency avoids problems where
    clients may not consider a single scalar value to be legal JSON.
    
    Closes gh-2449
    2109559f
Name
Last commit
Last update
docs Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-actuator-docs Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-deployment-tests Loading commit data...
spring-boot-devtools Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-tools Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
pom.xml Loading commit data...