@ -195,6 +197,8 @@ public class EndpointWebMvcAutoConfiguration implements ApplicationContextAware,
@@ -195,6 +197,8 @@ public class EndpointWebMvcAutoConfiguration implements ApplicationContextAware,
}
try{
childContext.refresh();
registerContainer(this.applicationContext,
childContext.getEmbeddedServletContainer());
}
catch(RuntimeExceptione){
// No support currently for deploying a war with management.port=<different>,
@ -207,6 +211,16 @@ public class EndpointWebMvcAutoConfiguration implements ApplicationContextAware,
@@ -207,6 +211,16 @@ public class EndpointWebMvcAutoConfiguration implements ApplicationContextAware,
@ -126,4 +126,5 @@ public class ManagementServerProperties implements SecurityPrequisite {
@@ -126,4 +126,5 @@ public class ManagementServerProperties implements SecurityPrequisite {
@ -60,7 +64,7 @@ public class EndpointsPropertiesSampleActuatorApplicationTests {
@@ -60,7 +64,7 @@ public class EndpointsPropertiesSampleActuatorApplicationTests {
@ -71,7 +75,7 @@ public class UnsecureManagementSampleActuatorApplicationTests {
@@ -71,7 +75,7 @@ public class UnsecureManagementSampleActuatorApplicationTests {
@ -102,6 +108,8 @@ public class EmbeddedWebApplicationContext extends GenericWebApplicationContext
@@ -102,6 +108,8 @@ public class EmbeddedWebApplicationContext extends GenericWebApplicationContext
@ -158,6 +166,7 @@ public class EmbeddedWebApplicationContext extends GenericWebApplicationContext
@@ -158,6 +166,7 @@ public class EmbeddedWebApplicationContext extends GenericWebApplicationContext
@ -382,6 +391,7 @@ public class EmbeddedWebApplicationContext extends GenericWebApplicationContext
@@ -382,6 +391,7 @@ public class EmbeddedWebApplicationContext extends GenericWebApplicationContext
try{
this.embeddedServletContainer.stop();
this.embeddedServletContainer=null;
this.containers.remove(SERVER);
}
catch(Exceptionex){
thrownewIllegalStateException(ex);
@ -425,4 +435,15 @@ public class EmbeddedWebApplicationContext extends GenericWebApplicationContext
@@ -425,4 +435,15 @@ public class EmbeddedWebApplicationContext extends GenericWebApplicationContext
@ -37,7 +40,12 @@ public class EmbeddedServletContainerListener extends AbstractTestExecutionListe
@@ -37,7 +40,12 @@ public class EmbeddedServletContainerListener extends AbstractTestExecutionListe
@ -143,6 +143,7 @@ public class SpringApplicationContextLoader extends AbstractContextLoader {
@@ -143,6 +143,7 @@ public class SpringApplicationContextLoader extends AbstractContextLoader {
if(annotation==null){
// Not running an embedded server, just setting up web context