@ -109,8 +109,8 @@ public class EndpointWebMvcAutoConfiguration implements ApplicationContextAware,
@@ -109,8 +109,8 @@ public class EndpointWebMvcAutoConfiguration implements ApplicationContextAware,
@ -169,7 +169,8 @@ public class EndpointWebMvcAutoConfiguration implements ApplicationContextAware,
@@ -169,7 +169,8 @@ public class EndpointWebMvcAutoConfiguration implements ApplicationContextAware,
@ -205,25 +206,28 @@ public class EndpointWebMvcAutoConfiguration implements ApplicationContextAware,
@@ -205,25 +206,28 @@ public class EndpointWebMvcAutoConfiguration implements ApplicationContextAware,
// Ensure close on the parent also closes the child
logger.warn("Could not start embedded container (management endpoints are still available through JMX)");
}else{
}
else{
throwex;
}
}
@ -238,14 +242,17 @@ public class EndpointWebMvcAutoConfiguration implements ApplicationContextAware,
@@ -238,14 +242,17 @@ public class EndpointWebMvcAutoConfiguration implements ApplicationContextAware,
@ -48,7 +48,8 @@ public class HealthEndpoint extends AbstractEndpoint<Health> {
@@ -48,7 +48,8 @@ public class HealthEndpoint extends AbstractEndpoint<Health> {
@ -67,8 +67,10 @@ public class OrderedHealthAggregator implements HealthAggregator {
@@ -67,8 +67,10 @@ public class OrderedHealthAggregator implements HealthAggregator {
@ -88,7 +88,8 @@ public class SimpleDataSourceHealthIndicator implements HealthIndicator {
@@ -88,7 +88,8 @@ public class SimpleDataSourceHealthIndicator implements HealthIndicator {
}
});
health.withDetail("database",product);
}catch(DataAccessExceptionex){
}
catch(DataAccessExceptionex){
health.down().withException(ex);
}
Stringquery=detectQuery(product);
@ -96,7 +97,8 @@ public class SimpleDataSourceHealthIndicator implements HealthIndicator {
@@ -96,7 +97,8 @@ public class SimpleDataSourceHealthIndicator implements HealthIndicator {