Fix references to management related properties

See gh-11091
pull/11126/head
Vedran Pavic 7 years ago committed by Stephane Nicoll
parent f7ed24cb7c
commit 63aef58d30

@ -423,7 +423,7 @@
"type": "java.lang.Boolean", "type": "java.lang.Boolean",
"description": "Whether to enable the endpoint.", "description": "Whether to enable the endpoint.",
"deprecation": { "deprecation": {
"replacement": "endpoints.threaddump.enabled", "replacement": "management.endpoint.threaddump.enabled",
"level": "error" "level": "error"
} }
}, },
@ -460,7 +460,7 @@
"description": "Whether to enable endpoints.", "description": "Whether to enable endpoints.",
"defaultValue": true, "defaultValue": true,
"deprecation": { "deprecation": {
"replacement": "endpoints.default.enabled", "replacement": "management.endpoints.enabled-by-default",
"level": "error" "level": "error"
} }
}, },
@ -551,7 +551,7 @@
"description": "Time to live for cached result, in milliseconds.", "description": "Time to live for cached result, in milliseconds.",
"defaultValue": 1000, "defaultValue": 1000,
"deprecation": { "deprecation": {
"replacement": "endpoints.health.cache.time-to-live", "replacement": "management.endpoint.health.cache.time-to-live",
"level": "error" "level": "error"
} }
}, },
@ -625,7 +625,7 @@
"description": "Whether to enable JMX export of all endpoints.", "description": "Whether to enable JMX export of all endpoints.",
"defaultValue": true, "defaultValue": true,
"deprecation": { "deprecation": {
"replacement": "endpoints.default.jmx.enabled", "replacement": "management.endpoints.jmx.enabled",
"level": "error" "level": "error"
} }
}, },

@ -25,7 +25,6 @@ import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import; import org.springframework.context.annotation.Import;
import org.springframework.core.env.Environment; import org.springframework.core.env.Environment;
import org.springframework.restdocs.mockmvc.MockMvcRestDocumentation; import org.springframework.restdocs.mockmvc.MockMvcRestDocumentation;
import org.springframework.test.context.TestPropertySource;
import static org.springframework.restdocs.payload.PayloadDocumentation.fieldWithPath; import static org.springframework.restdocs.payload.PayloadDocumentation.fieldWithPath;
import static org.springframework.restdocs.payload.PayloadDocumentation.responseFields; import static org.springframework.restdocs.payload.PayloadDocumentation.responseFields;
@ -37,7 +36,6 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
* *
* @author Andy Wilkinson * @author Andy Wilkinson
*/ */
@TestPropertySource(properties = "endpoints.shutdown.enabled=true")
public class ShutdownEndpointDocumentationTests public class ShutdownEndpointDocumentationTests
extends AbstractEndpointDocumentationTests { extends AbstractEndpointDocumentationTests {

@ -1,4 +1,4 @@
endpoints.metrics.web.enabled=true management.endpoints.web.expose=metrics
# #
# Infinispan configuration file location. # Infinispan configuration file location.

@ -1,4 +1,4 @@
endpoints.flyway.web.enabled=true management.endpoints.web.expose=flyway
spring.jpa.hibernate.ddl-auto=validate spring.jpa.hibernate.ddl-auto=validate
spring.jpa.open-in-view=true spring.jpa.open-in-view=true
spring.h2.console.enabled=true spring.h2.console.enabled=true

@ -1,3 +1,3 @@
endpoints.liquibase.web.enabled=true management.endpoints.web.expose=liquibase
spring.h2.console.enabled=true spring.h2.console.enabled=true

@ -1 +1 @@
endpoints.sessions.web.enabled=true management.endpoints.web.expose=sessions

Loading…
Cancel
Save