Polish "Optionally ignore routing data sources when creating DB health indicators"
See gh-22222
This commit is contained in:
parent
13d1d2393d
commit
b627918011
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -55,6 +55,7 @@ import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;
|
|||
* @author Andy Wilkinson
|
||||
* @author Stephane Nicoll
|
||||
* @author Arthur Kalimullin
|
||||
* @author Julio Gomez
|
||||
* @since 2.0.0
|
||||
*/
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
|
|
|
|||
|
|
@ -29,7 +29,8 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
|
|||
public class DataSourceHealthIndicatorProperties {
|
||||
|
||||
/**
|
||||
* Whether to ignore the creation of health indicators for AbstractRoutingDatasource.
|
||||
* Whether to ignore AbstractRoutingDataSources when creating database health
|
||||
* indicators.
|
||||
*/
|
||||
private boolean ignoreRoutingDataSources = false;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -44,6 +44,7 @@ import static org.mockito.Mockito.mock;
|
|||
* Tests for {@link DataSourceHealthContributorAutoConfiguration}.
|
||||
*
|
||||
* @author Phillip Webb
|
||||
* @author Julio Gomez
|
||||
*/
|
||||
class DataSourceHealthContributorAutoConfigurationTests {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue