The management.contextPath property should now be respected in a
secure application, whether or not the management.port is different.
Added some test cases in the sample to verify.
Fixes gh-469
@ -97,8 +97,11 @@ public class EndpointWebMvcAutoConfiguration implements ApplicationContextAware,
@@ -97,8 +97,11 @@ public class EndpointWebMvcAutoConfiguration implements ApplicationContextAware,
@ -138,6 +138,13 @@ public class EndpointHandlerMapping extends RequestMappingHandlerMapping impleme
@@ -138,6 +138,13 @@ public class EndpointHandlerMapping extends RequestMappingHandlerMapping impleme
this.prefix=prefix;
}
/**
*@returntheprefixusedinmappings
*/
publicStringgetPrefix(){
returnthis.prefix;
}
/**
*Setsifthismappingisdisabled.
*/
@ -158,4 +165,5 @@ public class EndpointHandlerMapping extends RequestMappingHandlerMapping impleme
@@ -158,4 +165,5 @@ public class EndpointHandlerMapping extends RequestMappingHandlerMapping impleme
@ -78,6 +78,12 @@ public class EndpointsPropertiesSampleActuatorApplicationTests {
@@ -78,6 +78,12 @@ public class EndpointsPropertiesSampleActuatorApplicationTests {
@ -89,6 +95,18 @@ public class EndpointsPropertiesSampleActuatorApplicationTests {
@@ -89,6 +95,18 @@ public class EndpointsPropertiesSampleActuatorApplicationTests {
@ -122,5 +140,4 @@ public class EndpointsPropertiesSampleActuatorApplicationTests {
@@ -122,5 +140,4 @@ public class EndpointsPropertiesSampleActuatorApplicationTests {