Polish "Optionally ignore routing data sources when creating DB health indicators"

See gh-22222
This commit is contained in:
Andy Wilkinson 2020-07-07 09:42:36 +01:00
parent 13d1d2393d
commit b627918011
3 changed files with 6 additions and 3 deletions

View File

@ -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)

View File

@ -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;

View File

@ -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 {