parent
							
								
									67cb03b8b4
								
							
						
					
					
						commit
						5addbc70e7
					
				| 
						 | 
				
			
			@ -68,6 +68,7 @@ include "spring-boot-project:spring-boot-devtools"
 | 
			
		|||
include "spring-boot-project:spring-boot-docker-compose"
 | 
			
		||||
include "spring-boot-project:spring-boot-docs"
 | 
			
		||||
include "spring-boot-project:spring-boot-jackson"
 | 
			
		||||
include "spring-boot-project:spring-boot-jdbc"
 | 
			
		||||
include "spring-boot-project:spring-boot-jetty"
 | 
			
		||||
include "spring-boot-project:spring-boot-jms"
 | 
			
		||||
include "spring-boot-project:spring-boot-jsonb"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -37,6 +37,7 @@ dependencies {
 | 
			
		|||
	optional(project(":spring-boot-project:spring-boot-amqp"))
 | 
			
		||||
	optional(project(":spring-boot-project:spring-boot-artemis"))
 | 
			
		||||
	optional(project(":spring-boot-project:spring-boot-jackson"))
 | 
			
		||||
	optional(project(":spring-boot-project:spring-boot-jdbc"))
 | 
			
		||||
	optional(project(":spring-boot-project:spring-boot-jetty"))
 | 
			
		||||
	optional(project(":spring-boot-project:spring-boot-jsonb"))
 | 
			
		||||
	optional(project(":spring-boot-project:spring-boot-mail"))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -40,8 +40,8 @@ import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
 | 
			
		|||
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
 | 
			
		||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
 | 
			
		||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.metadata.CompositeDataSourcePoolMetadataProvider;
 | 
			
		||||
import org.springframework.boot.jdbc.metadata.DataSourcePoolMetadata;
 | 
			
		||||
import org.springframework.boot.jdbc.metadata.DataSourcePoolMetadataProvider;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -41,8 +41,8 @@ import org.springframework.boot.autoconfigure.AutoConfiguration;
 | 
			
		|||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
 | 
			
		||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.DataSourceUnwrapper;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.metadata.DataSourcePoolMetadataProvider;
 | 
			
		||||
import org.springframework.context.annotation.Bean;
 | 
			
		||||
import org.springframework.context.annotation.Configuration;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -45,7 +45,7 @@ import org.springframework.boot.actuate.health.StatusAggregator;
 | 
			
		|||
import org.springframework.boot.actuate.jdbc.DataSourceHealthIndicator;
 | 
			
		||||
import org.springframework.boot.actuate.system.DiskSpaceHealthIndicator;
 | 
			
		||||
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.context.annotation.Bean;
 | 
			
		||||
import org.springframework.context.annotation.Configuration;
 | 
			
		||||
import org.springframework.http.MediaType;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -35,12 +35,12 @@ import org.springframework.boot.actuate.health.CompositeHealthContributor;
 | 
			
		|||
import org.springframework.boot.actuate.health.NamedContributor;
 | 
			
		||||
import org.springframework.boot.actuate.jdbc.DataSourceHealthIndicator;
 | 
			
		||||
import org.springframework.boot.autoconfigure.AutoConfigurations;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.EmbeddedDataSourceConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.metadata.DataSourcePoolMetadataProvidersConfiguration;
 | 
			
		||||
import org.springframework.boot.context.properties.ConfigurationProperties;
 | 
			
		||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
 | 
			
		||||
import org.springframework.boot.jdbc.DataSourceBuilder;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.EmbeddedDataSourceConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.metadata.autoconfigure.DataSourcePoolMetadataProvidersConfiguration;
 | 
			
		||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
 | 
			
		||||
import org.springframework.context.annotation.Bean;
 | 
			
		||||
import org.springframework.context.annotation.Configuration;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -23,8 +23,8 @@ import org.junit.jupiter.api.Test;
 | 
			
		|||
 | 
			
		||||
import org.springframework.boot.actuate.autoconfigure.endpoint.web.documentation.MockMvcEndpointDocumentationTests;
 | 
			
		||||
import org.springframework.boot.actuate.liquibase.LiquibaseEndpoint;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.EmbeddedDataSourceConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.EmbeddedDataSourceConfiguration;
 | 
			
		||||
import org.springframework.context.ApplicationContext;
 | 
			
		||||
import org.springframework.context.annotation.Bean;
 | 
			
		||||
import org.springframework.context.annotation.Configuration;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -27,8 +27,8 @@ import org.springframework.boot.autoconfigure.AutoConfigurationPackage;
 | 
			
		|||
import org.springframework.boot.autoconfigure.AutoConfigurations;
 | 
			
		||||
import org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.EmbeddedDataSourceConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.EmbeddedDataSourceConfiguration;
 | 
			
		||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
 | 
			
		||||
import org.springframework.context.annotation.Bean;
 | 
			
		||||
import org.springframework.context.annotation.Configuration;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -33,9 +33,9 @@ import org.springframework.beans.factory.config.BeanPostProcessor;
 | 
			
		|||
import org.springframework.boot.LazyInitializationBeanFactoryPostProcessor;
 | 
			
		||||
import org.springframework.boot.actuate.autoconfigure.metrics.test.MetricsRun;
 | 
			
		||||
import org.springframework.boot.autoconfigure.AutoConfigurations;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceInitializationAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.DataSourceBuilder;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceInitializationAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.metadata.DataSourcePoolMetadataProvider;
 | 
			
		||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
 | 
			
		||||
import org.springframework.context.annotation.Bean;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -34,10 +34,10 @@ import org.mockito.ArgumentMatchers;
 | 
			
		|||
 | 
			
		||||
import org.springframework.boot.actuate.autoconfigure.metrics.test.MetricsRun;
 | 
			
		||||
import org.springframework.boot.autoconfigure.AutoConfigurations;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceInitializationAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.orm.jpa.EntityManagerFactoryBuilderCustomizer;
 | 
			
		||||
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceInitializationAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.orm.jpa.EntityManagerFactoryBuilder;
 | 
			
		||||
import org.springframework.boot.test.context.FilteredClassLoader;
 | 
			
		||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -40,6 +40,7 @@ dependencies {
 | 
			
		|||
	dockerTestImplementation("org.testcontainers:testcontainers")
 | 
			
		||||
 | 
			
		||||
	optional(project(":spring-boot-project:spring-boot-activemq"))
 | 
			
		||||
	optional(project(":spring-boot-project:spring-boot-jdbc"))
 | 
			
		||||
	optional(project(":spring-boot-project:spring-boot-jetty"))
 | 
			
		||||
	optional(project(":spring-boot-project:spring-boot-jsonb"))
 | 
			
		||||
	optional(project(":spring-boot-project:spring-boot-reactor-netty"))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -24,7 +24,7 @@ import org.springframework.boot.actuate.flyway.FlywayEndpoint.FlywayDescriptor;
 | 
			
		|||
import org.springframework.boot.autoconfigure.AutoConfigurations;
 | 
			
		||||
import org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.flyway.FlywayMigrationStrategy;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.EmbeddedDataSourceConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.EmbeddedDataSourceConfiguration;
 | 
			
		||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
 | 
			
		||||
import org.springframework.boot.testsupport.classpath.resources.WithResource;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -29,9 +29,9 @@ import org.junit.jupiter.api.Test;
 | 
			
		|||
 | 
			
		||||
import org.springframework.boot.actuate.liquibase.LiquibaseEndpoint.LiquibaseBeanDescriptor;
 | 
			
		||||
import org.springframework.boot.autoconfigure.AutoConfigurations;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.EmbeddedDatabaseConnection;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.init.DataSourceScriptDatabaseInitializer;
 | 
			
		||||
import org.springframework.boot.sql.init.DatabaseInitializationSettings;
 | 
			
		||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -26,7 +26,7 @@ import io.micrometer.core.instrument.simple.SimpleMeterRegistry;
 | 
			
		|||
import org.junit.jupiter.api.Test;
 | 
			
		||||
 | 
			
		||||
import org.springframework.boot.autoconfigure.AutoConfigurations;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.metadata.DataSourcePoolMetadataProvider;
 | 
			
		||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
 | 
			
		||||
import org.springframework.context.annotation.Bean;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -30,11 +30,9 @@ dependencies {
 | 
			
		|||
	api("org.springframework:spring-core")
 | 
			
		||||
	api("org.springframework:spring-context")
 | 
			
		||||
	optional("ch.qos.logback:logback-classic")
 | 
			
		||||
	optional("com.clickhouse:clickhouse-jdbc")
 | 
			
		||||
	optional("com.fasterxml.jackson.core:jackson-databind")
 | 
			
		||||
	optional("com.h2database:h2")
 | 
			
		||||
	optional("com.google.code.gson:gson")
 | 
			
		||||
	optional("com.mchange:c3p0")
 | 
			
		||||
	optional("com.oracle.database.jdbc:ucp11")
 | 
			
		||||
	optional("com.oracle.database.jdbc:ojdbc11")
 | 
			
		||||
	optional("com.samskivert:jmustache")
 | 
			
		||||
| 
						 | 
				
			
			@ -103,14 +101,11 @@ dependencies {
 | 
			
		|||
	testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
 | 
			
		||||
	testImplementation(testFixtures(project(":spring-boot-project:spring-boot")))
 | 
			
		||||
	testImplementation("com.ibm.db2:jcc")
 | 
			
		||||
	testImplementation("com.microsoft.sqlserver:mssql-jdbc")
 | 
			
		||||
	testImplementation("com.mysql:mysql-connector-j")
 | 
			
		||||
	testImplementation("com.sun.xml.messaging.saaj:saaj-impl")
 | 
			
		||||
	testImplementation("io.projectreactor:reactor-test")
 | 
			
		||||
	testImplementation("io.r2dbc:r2dbc-h2")
 | 
			
		||||
	testImplementation("jakarta.inject:jakarta.inject-api")
 | 
			
		||||
	testImplementation("jakarta.xml.ws:jakarta.xml.ws-api")
 | 
			
		||||
	testImplementation("net.sourceforge.jtds:jtds")
 | 
			
		||||
	testImplementation("org.apache.derby:derby")
 | 
			
		||||
	testImplementation("org.apache.derby:derbytools")
 | 
			
		||||
	testImplementation("org.codehaus.janino:janino")
 | 
			
		||||
| 
						 | 
				
			
			@ -118,9 +113,6 @@ dependencies {
 | 
			
		|||
	testImplementation("org.eclipse.jetty:jetty-reactive-httpclient")
 | 
			
		||||
	testImplementation("org.eclipse.jetty.http2:jetty-http2-client")
 | 
			
		||||
	testImplementation("org.eclipse.jetty.http2:jetty-http2-client-transport")
 | 
			
		||||
	testImplementation("org.firebirdsql.jdbc:jaybird") {
 | 
			
		||||
		exclude group: "javax.resource", module: "connector-api"
 | 
			
		||||
	}
 | 
			
		||||
	testImplementation("org.hsqldb:hsqldb")
 | 
			
		||||
	testImplementation("org.mariadb.jdbc:mariadb-java-client") {
 | 
			
		||||
		exclude group: "org.slf4j", module: "jcl-over-slf4j"
 | 
			
		||||
| 
						 | 
				
			
			@ -128,7 +120,6 @@ dependencies {
 | 
			
		|||
	testImplementation("org.springframework:spring-context-support")
 | 
			
		||||
	testImplementation("org.springframework.data:spring-data-redis")
 | 
			
		||||
	testImplementation("org.springframework.data:spring-data-r2dbc")
 | 
			
		||||
	testImplementation("org.xerial:sqlite-jdbc")
 | 
			
		||||
 | 
			
		||||
	testRuntimeOnly("org.testcontainers:jdbc") {
 | 
			
		||||
		exclude group: "javax.annotation", module: "javax.annotation-api"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -13,13 +13,11 @@ org.springframework.boot.liquibase.LiquibaseChangelogMissingFailureAnalyzer
 | 
			
		|||
# Database Initializer Detectors
 | 
			
		||||
org.springframework.boot.sql.init.dependency.DatabaseInitializerDetector=\
 | 
			
		||||
org.springframework.boot.flyway.FlywayDatabaseInitializerDetector,\
 | 
			
		||||
org.springframework.boot.jdbc.init.DataSourceScriptDatabaseInitializerDetector,\
 | 
			
		||||
org.springframework.boot.liquibase.LiquibaseDatabaseInitializerDetector,\
 | 
			
		||||
org.springframework.boot.orm.jpa.JpaDatabaseInitializerDetector,\
 | 
			
		||||
org.springframework.boot.r2dbc.init.R2dbcScriptDatabaseInitializerDetector
 | 
			
		||||
 | 
			
		||||
# Depends On Database Initialization Detectors
 | 
			
		||||
org.springframework.boot.sql.init.dependency.DependsOnDatabaseInitializationDetector=\
 | 
			
		||||
org.springframework.boot.jdbc.SpringJdbcDependsOnDatabaseInitializationDetector,\
 | 
			
		||||
org.springframework.boot.jooq.JooqDependsOnDatabaseInitializationDetector,\
 | 
			
		||||
org.springframework.boot.orm.jpa.JpaDependsOnDatabaseInitializationDetector
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,3 +1,2 @@
 | 
			
		|||
org.springframework.aot.hint.RuntimeHintsRegistrar=\
 | 
			
		||||
org.springframework.boot.http.client.ClientHttpRequestFactoryRuntimeHints,\
 | 
			
		||||
org.springframework.boot.jdbc.DataSourceBuilderRuntimeHints
 | 
			
		||||
org.springframework.boot.http.client.ClientHttpRequestFactoryRuntimeHints
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -18,12 +18,12 @@ package org.springframework.boot.liquibase;
 | 
			
		|||
 | 
			
		||||
import javax.sql.DataSource;
 | 
			
		||||
 | 
			
		||||
import com.zaxxer.hikari.HikariDataSource;
 | 
			
		||||
import liquibase.integration.spring.SpringLiquibase;
 | 
			
		||||
import org.junit.jupiter.api.Test;
 | 
			
		||||
 | 
			
		||||
import org.springframework.beans.factory.BeanCreationException;
 | 
			
		||||
import org.springframework.boot.diagnostics.FailureAnalysis;
 | 
			
		||||
import org.springframework.boot.jdbc.DataSourceBuilder;
 | 
			
		||||
import org.springframework.boot.testsupport.classpath.ClassPathExclusions;
 | 
			
		||||
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
 | 
			
		||||
import org.springframework.context.annotation.Bean;
 | 
			
		||||
| 
						 | 
				
			
			@ -70,7 +70,10 @@ class LiquibaseChangelogMissingFailureAnalyzerTests {
 | 
			
		|||
 | 
			
		||||
		@Bean
 | 
			
		||||
		DataSource dataSource() {
 | 
			
		||||
			return DataSourceBuilder.create().url("jdbc:hsqldb:mem:test").username("sa").build();
 | 
			
		||||
			HikariDataSource dataSource = new HikariDataSource();
 | 
			
		||||
			dataSource.setJdbcUrl("jdbc:hsqldb:mem:test");
 | 
			
		||||
			dataSource.setUsername("sa");
 | 
			
		||||
			return dataSource;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		@Bean
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -62,6 +62,7 @@ dependencies {
 | 
			
		|||
	optional(project(":spring-boot-project:spring-boot-activemq"))
 | 
			
		||||
	optional(project(":spring-boot-project:spring-boot-artemis"))
 | 
			
		||||
	optional(project(":spring-boot-project:spring-boot-jackson"))
 | 
			
		||||
	optional(project(":spring-boot-project:spring-boot-jdbc"))
 | 
			
		||||
	optional(project(":spring-boot-project:spring-boot-jsonb"))
 | 
			
		||||
	optional(project(":spring-boot-project:spring-boot-reactor-netty"))
 | 
			
		||||
	optional(project(":spring-boot-project:spring-boot-tomcat"))
 | 
			
		||||
| 
						 | 
				
			
			@ -275,10 +276,6 @@ dependencies {
 | 
			
		|||
 | 
			
		||||
tasks.named("checkSpringConfigurationMetadata").configure {
 | 
			
		||||
	exclusions = [
 | 
			
		||||
		"spring.datasource.dbcp2.*",
 | 
			
		||||
		"spring.datasource.hikari.*",
 | 
			
		||||
		"spring.datasource.oracleucp.*",
 | 
			
		||||
		"spring.datasource.tomcat.*",
 | 
			
		||||
		"spring.groovy.template.configuration.*"
 | 
			
		||||
	]
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -26,9 +26,9 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnBooleanProp
 | 
			
		|||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
 | 
			
		||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
 | 
			
		||||
import org.springframework.boot.autoconfigure.domain.EntityScanner;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceTransactionManagerAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.JdbcTemplateAutoConfiguration;
 | 
			
		||||
import org.springframework.context.ApplicationContext;
 | 
			
		||||
import org.springframework.context.annotation.Bean;
 | 
			
		||||
import org.springframework.context.annotation.Configuration;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -55,15 +55,15 @@ import org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration.Fly
 | 
			
		|||
import org.springframework.boot.autoconfigure.flyway.FlywayProperties.Oracle;
 | 
			
		||||
import org.springframework.boot.autoconfigure.flyway.FlywayProperties.Postgresql;
 | 
			
		||||
import org.springframework.boot.autoconfigure.flyway.FlywayProperties.Sqlserver;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.context.properties.ConfigurationPropertiesBinding;
 | 
			
		||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
 | 
			
		||||
import org.springframework.boot.context.properties.PropertyMapper;
 | 
			
		||||
import org.springframework.boot.jdbc.DataSourceBuilder;
 | 
			
		||||
import org.springframework.boot.jdbc.DatabaseDriver;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.JdbcTemplateAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.sql.init.dependency.DatabaseInitializationDependencyConfigurer;
 | 
			
		||||
import org.springframework.context.annotation.Bean;
 | 
			
		||||
import org.springframework.context.annotation.Conditional;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -34,8 +34,8 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
 | 
			
		|||
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
 | 
			
		||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication.Type;
 | 
			
		||||
import org.springframework.boot.autoconfigure.h2.H2ConsoleProperties.Settings;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.web.servlet.ServletRegistrationBean;
 | 
			
		||||
import org.springframework.context.annotation.Bean;
 | 
			
		||||
import org.springframework.core.log.LogMessage;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -35,7 +35,6 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
 | 
			
		|||
import org.springframework.boot.autoconfigure.condition.ConditionalOnSingleCandidate;
 | 
			
		||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnThreading;
 | 
			
		||||
import org.springframework.boot.autoconfigure.condition.SearchStrategy;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jmx.JmxProperties;
 | 
			
		||||
import org.springframework.boot.autoconfigure.rsocket.RSocketMessagingAutoConfiguration;
 | 
			
		||||
| 
						 | 
				
			
			@ -89,8 +88,8 @@ import org.springframework.util.StringUtils;
 | 
			
		|||
 * @author Yanming Zhou
 | 
			
		||||
 * @since 1.1.0
 | 
			
		||||
 */
 | 
			
		||||
@AutoConfiguration(after = { DataSourceAutoConfiguration.class, JmxAutoConfiguration.class,
 | 
			
		||||
		TaskSchedulingAutoConfiguration.class })
 | 
			
		||||
@AutoConfiguration(after = { JmxAutoConfiguration.class, TaskSchedulingAutoConfiguration.class },
 | 
			
		||||
		afterName = "org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration")
 | 
			
		||||
@ConditionalOnClass(EnableIntegration.class)
 | 
			
		||||
@EnableConfigurationProperties({ IntegrationProperties.class, JmxProperties.class })
 | 
			
		||||
public class IntegrationAutoConfiguration {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -50,8 +50,8 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
 | 
			
		|||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
 | 
			
		||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
 | 
			
		||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.transaction.autoconfigure.TransactionAutoConfiguration;
 | 
			
		||||
import org.springframework.context.annotation.Bean;
 | 
			
		||||
import org.springframework.core.annotation.Order;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -37,13 +37,13 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnBooleanProp
 | 
			
		|||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
 | 
			
		||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
 | 
			
		||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration.LiquibaseAutoConfigurationRuntimeHints;
 | 
			
		||||
import org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration.LiquibaseDataSourceCondition;
 | 
			
		||||
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
 | 
			
		||||
import org.springframework.boot.jdbc.DataSourceBuilder;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.sql.init.dependency.DatabaseInitializationDependencyConfigurer;
 | 
			
		||||
import org.springframework.context.annotation.Bean;
 | 
			
		||||
import org.springframework.context.annotation.Conditional;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -22,9 +22,9 @@ import org.hibernate.engine.spi.SessionImplementor;
 | 
			
		|||
import org.springframework.boot.autoconfigure.AutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceTransactionManagerAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.transaction.autoconfigure.TransactionAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.transaction.autoconfigure.TransactionManagerCustomizationAutoConfiguration;
 | 
			
		||||
import org.springframework.context.annotation.Import;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -34,11 +34,11 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
 | 
			
		|||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
 | 
			
		||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnSingleCandidate;
 | 
			
		||||
import org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.sql.init.OnDatabaseInitializationCondition;
 | 
			
		||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.sql.init.dependency.DatabaseInitializationDependencyConfigurer;
 | 
			
		||||
import org.springframework.context.ApplicationContext;
 | 
			
		||||
import org.springframework.context.annotation.Bean;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -30,7 +30,6 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
 | 
			
		|||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
 | 
			
		||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
 | 
			
		||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnResource;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
 | 
			
		||||
import org.springframework.context.annotation.Bean;
 | 
			
		||||
import org.springframework.context.annotation.Import;
 | 
			
		||||
| 
						 | 
				
			
			@ -43,7 +42,8 @@ import org.springframework.util.StringUtils;
 | 
			
		|||
 * @author Stephane Nicoll
 | 
			
		||||
 * @since 2.3.0
 | 
			
		||||
 */
 | 
			
		||||
@AutoConfiguration(before = { DataSourceAutoConfiguration.class, R2dbcInitializationAutoConfiguration.class })
 | 
			
		||||
@AutoConfiguration(before = { R2dbcInitializationAutoConfiguration.class },
 | 
			
		||||
		beforeName = "org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration")
 | 
			
		||||
@ConditionalOnClass(ConnectionFactory.class)
 | 
			
		||||
@ConditionalOnResource(resources = "classpath:META-INF/services/io.r2dbc.spi.ConnectionFactoryProvider")
 | 
			
		||||
@EnableConfigurationProperties(R2dbcProperties.class)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -22,7 +22,6 @@ import org.springframework.boot.autoconfigure.AutoConfiguration;
 | 
			
		|||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
 | 
			
		||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
 | 
			
		||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnSingleCandidate;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.ApplicationDataSourceScriptDatabaseInitializer;
 | 
			
		||||
import org.springframework.boot.autoconfigure.sql.init.ConditionalOnSqlInitialization;
 | 
			
		||||
import org.springframework.boot.autoconfigure.sql.init.SqlInitializationProperties;
 | 
			
		||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
 | 
			
		||||
| 
						 | 
				
			
			@ -44,8 +43,8 @@ import org.springframework.util.StringUtils;
 | 
			
		|||
@AutoConfiguration
 | 
			
		||||
@ConditionalOnClass({ ConnectionFactory.class, DatabasePopulator.class })
 | 
			
		||||
@ConditionalOnSingleCandidate(ConnectionFactory.class)
 | 
			
		||||
@ConditionalOnMissingBean({ ApplicationR2dbcScriptDatabaseInitializer.class,
 | 
			
		||||
		ApplicationDataSourceScriptDatabaseInitializer.class })
 | 
			
		||||
@ConditionalOnMissingBean(value = ApplicationR2dbcScriptDatabaseInitializer.class,
 | 
			
		||||
		type = "org.springframework.boot.jdbc.autoconfigure.ApplicationDataSourceScriptDatabaseInitializer")
 | 
			
		||||
@ConditionalOnSqlInitialization
 | 
			
		||||
@Import(DatabaseInitializationDependencyConfigurer.class)
 | 
			
		||||
@EnableConfigurationProperties(SqlInitializationProperties.class)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -32,8 +32,6 @@ import org.springframework.boot.autoconfigure.data.mongo.MongoReactiveDataAutoCo
 | 
			
		|||
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.data.redis.RedisReactiveAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.hazelcast.HazelcastAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.web.ServerProperties;
 | 
			
		||||
import org.springframework.boot.autoconfigure.web.reactive.HttpHandlerAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.web.reactive.WebFluxAutoConfiguration;
 | 
			
		||||
| 
						 | 
				
			
			@ -69,10 +67,11 @@ import org.springframework.session.web.http.HttpSessionIdResolver;
 | 
			
		|||
 * @since 1.4.0
 | 
			
		||||
 */
 | 
			
		||||
@AutoConfiguration(
 | 
			
		||||
		after = { DataSourceAutoConfiguration.class, HazelcastAutoConfiguration.class,
 | 
			
		||||
				JdbcTemplateAutoConfiguration.class, MongoDataAutoConfiguration.class,
 | 
			
		||||
		after = { HazelcastAutoConfiguration.class, MongoDataAutoConfiguration.class,
 | 
			
		||||
				MongoReactiveDataAutoConfiguration.class, RedisAutoConfiguration.class,
 | 
			
		||||
				RedisReactiveAutoConfiguration.class, WebSessionIdResolverAutoConfiguration.class },
 | 
			
		||||
		afterName = { "org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration",
 | 
			
		||||
				"org.springframework.boot.jdbc.autoconfigure.JdbcTemplateAutoConfiguration" },
 | 
			
		||||
		before = { HttpHandlerAutoConfiguration.class, WebFluxAutoConfiguration.class })
 | 
			
		||||
@ConditionalOnClass(Session.class)
 | 
			
		||||
@ConditionalOnWebApplication
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -681,92 +681,6 @@
 | 
			
		|||
      }
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "name" : "spring.datasource.continue-on-error",
 | 
			
		||||
      "type" : "java.lang.Boolean",
 | 
			
		||||
      "deprecation" : {
 | 
			
		||||
        "level" : "error",
 | 
			
		||||
        "replacement": "spring.sql.init.continue-on-error"
 | 
			
		||||
      }
 | 
			
		||||
    }, {
 | 
			
		||||
      "name" : "spring.datasource.data",
 | 
			
		||||
      "type" : "java.util.List<java.lang.String>",
 | 
			
		||||
      "deprecation" : {
 | 
			
		||||
        "level" : "error",
 | 
			
		||||
        "replacement": "spring.sql.init.data-locations"
 | 
			
		||||
      }
 | 
			
		||||
    }, {
 | 
			
		||||
      "name" : "spring.datasource.data-password",
 | 
			
		||||
      "type" : "java.lang.String",
 | 
			
		||||
      "deprecation" : {
 | 
			
		||||
        "level" : "error",
 | 
			
		||||
        "replacement": "spring.sql.init.password"
 | 
			
		||||
      }
 | 
			
		||||
    }, {
 | 
			
		||||
      "name" : "spring.datasource.data-username",
 | 
			
		||||
      "type" : "java.lang.String",
 | 
			
		||||
      "deprecation" : {
 | 
			
		||||
        "level" : "error",
 | 
			
		||||
        "replacement": "spring.sql.init.username"
 | 
			
		||||
      }
 | 
			
		||||
    }, {
 | 
			
		||||
      "name" : "spring.datasource.initialization-mode",
 | 
			
		||||
      "type" : "org.springframework.boot.jdbc.DataSourceInitializationMode",
 | 
			
		||||
      "deprecation" : {
 | 
			
		||||
        "level" : "error",
 | 
			
		||||
        "replacement": "spring.sql.init.mode"
 | 
			
		||||
      }
 | 
			
		||||
    }, {
 | 
			
		||||
      "name": "spring.datasource.jmx-enabled",
 | 
			
		||||
      "type": "java.lang.Boolean",
 | 
			
		||||
      "description": "Whether to enable JMX support (if provided by the underlying pool).",
 | 
			
		||||
      "defaultValue": false,
 | 
			
		||||
      "deprecation": {
 | 
			
		||||
        "level": "error",
 | 
			
		||||
        "replacement": "spring.datasource.tomcat.jmx-enabled"
 | 
			
		||||
      }
 | 
			
		||||
    }, {
 | 
			
		||||
      "name" : "spring.datasource.platform",
 | 
			
		||||
      "type" : "java.lang.String",
 | 
			
		||||
      "deprecation" : {
 | 
			
		||||
        "level" : "error",
 | 
			
		||||
        "replacement": "spring.sql.init.platform"
 | 
			
		||||
      }
 | 
			
		||||
    }, {
 | 
			
		||||
      "name" : "spring.datasource.schema",
 | 
			
		||||
      "type" : "java.util.List<java.lang.String>",
 | 
			
		||||
      "deprecation" : {
 | 
			
		||||
        "level" : "error",
 | 
			
		||||
        "replacement": "spring.sql.init.schema-locations"
 | 
			
		||||
      }
 | 
			
		||||
    }, {
 | 
			
		||||
      "name" : "spring.datasource.schema-password",
 | 
			
		||||
      "type" : "java.lang.String",
 | 
			
		||||
      "deprecation" : {
 | 
			
		||||
        "level" : "error",
 | 
			
		||||
        "replacement": "spring.sql.init.password"
 | 
			
		||||
      }
 | 
			
		||||
    }, {
 | 
			
		||||
      "name" : "spring.datasource.schema-username",
 | 
			
		||||
      "type" : "java.lang.String",
 | 
			
		||||
      "deprecation" : {
 | 
			
		||||
        "level" : "error",
 | 
			
		||||
        "replacement": "spring.sql.init.username"
 | 
			
		||||
      }
 | 
			
		||||
    }, {
 | 
			
		||||
      "name" : "spring.datasource.separator",
 | 
			
		||||
      "type" : "java.lang.String",
 | 
			
		||||
      "deprecation" : {
 | 
			
		||||
        "level" : "error",
 | 
			
		||||
        "replacement": "spring.sql.init.separator"
 | 
			
		||||
      }
 | 
			
		||||
    }, {
 | 
			
		||||
      "name" : "spring.datasource.sql-script-encoding",
 | 
			
		||||
      "type" : "java.nio.charset.Charset",
 | 
			
		||||
      "deprecation" : {
 | 
			
		||||
        "level" : "error",
 | 
			
		||||
        "replacement": "spring.sql.init.encoding"
 | 
			
		||||
      }
 | 
			
		||||
    }, {
 | 
			
		||||
      "name": "spring.elasticsearch.jest.connection-timeout",
 | 
			
		||||
      "type": "java.time.Duration",
 | 
			
		||||
      "description": "Connection timeout.",
 | 
			
		||||
| 
						 | 
				
			
			@ -2453,61 +2367,6 @@
 | 
			
		|||
        }
 | 
			
		||||
      ]
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "name": "spring.datasource.data",
 | 
			
		||||
      "providers": [
 | 
			
		||||
        {
 | 
			
		||||
          "name": "handle-as",
 | 
			
		||||
          "parameters": {
 | 
			
		||||
            "target": "java.util.List<org.springframework.core.io.Resource>"
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      ]
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "name": "spring.datasource.driver-class-name",
 | 
			
		||||
      "providers": [
 | 
			
		||||
        {
 | 
			
		||||
          "name": "class-reference",
 | 
			
		||||
          "parameters": {
 | 
			
		||||
            "target": "java.sql.Driver"
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      ]
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "name": "spring.datasource.schema",
 | 
			
		||||
      "providers": [
 | 
			
		||||
        {
 | 
			
		||||
          "name": "handle-as",
 | 
			
		||||
          "parameters": {
 | 
			
		||||
            "target": "java.util.List<org.springframework.core.io.Resource>"
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      ]
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "name": "spring.datasource.xa.data-source-class-name",
 | 
			
		||||
      "providers": [
 | 
			
		||||
        {
 | 
			
		||||
          "name": "class-reference",
 | 
			
		||||
          "parameters": {
 | 
			
		||||
            "target": "javax.sql.XADataSource"
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      ]
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "name": "spring.datasource.xa.data-source-class-name",
 | 
			
		||||
      "providers": [
 | 
			
		||||
        {
 | 
			
		||||
          "name": "class-reference",
 | 
			
		||||
          "parameters": {
 | 
			
		||||
            "target": "javax.sql.XADataSource"
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      ]
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "name": "spring.graphql.cors.allowed-headers",
 | 
			
		||||
      "values": [
 | 
			
		||||
| 
						 | 
				
			
			@ -2852,30 +2711,5 @@
 | 
			
		|||
        }
 | 
			
		||||
      ]
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
 "ignored": {
 | 
			
		||||
    "properties": [
 | 
			
		||||
      {
 | 
			
		||||
        "name": "spring.datasource.dbcp2.driver"
 | 
			
		||||
      },
 | 
			
		||||
      {
 | 
			
		||||
        "name": "spring.datasource.hikari.credentials"
 | 
			
		||||
      },
 | 
			
		||||
      {
 | 
			
		||||
        "name": "spring.datasource.hikari.exception-override"
 | 
			
		||||
      },
 | 
			
		||||
      {
 | 
			
		||||
        "name": "spring.datasource.hikari.metrics-tracker-factory"
 | 
			
		||||
      },
 | 
			
		||||
      {
 | 
			
		||||
        "name": "spring.datasource.hikari.scheduled-executor"
 | 
			
		||||
      },
 | 
			
		||||
      {
 | 
			
		||||
        "name": "spring.datasource.oracleucp.connection-wait-duration-in-millis"
 | 
			
		||||
      },
 | 
			
		||||
      {
 | 
			
		||||
        "name": "spring.datasource.oracleucp.hostname-resolver"
 | 
			
		||||
      }
 | 
			
		||||
  ]
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -10,8 +10,6 @@ org.springframework.boot.autoconfigure.validation.JakartaValidationBackgroundPre
 | 
			
		|||
# Failure Analyzers
 | 
			
		||||
org.springframework.boot.diagnostics.FailureAnalyzer=\
 | 
			
		||||
org.springframework.boot.autoconfigure.data.redis.RedisUrlSyntaxFailureAnalyzer,\
 | 
			
		||||
org.springframework.boot.autoconfigure.jdbc.DataSourceBeanCreationFailureAnalyzer,\
 | 
			
		||||
org.springframework.boot.autoconfigure.jdbc.HikariDriverConfigurationFailureAnalyzer,\
 | 
			
		||||
org.springframework.boot.autoconfigure.jooq.JaxbNotAvailableExceptionFailureAnalyzer,\
 | 
			
		||||
org.springframework.boot.autoconfigure.jooq.NoDslContextBeanFailureAnalyzer,\
 | 
			
		||||
org.springframework.boot.autoconfigure.r2dbc.ConnectionFactoryBeanCreationFailureAnalyzer,\
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -62,13 +62,6 @@ org.springframework.boot.autoconfigure.http.client.reactive.ClientHttpConnectorA
 | 
			
		|||
org.springframework.boot.autoconfigure.http.client.reactive.service.ReactiveHttpServiceClientAutoConfiguration
 | 
			
		||||
org.springframework.boot.autoconfigure.http.codec.CodecsAutoConfiguration
 | 
			
		||||
org.springframework.boot.autoconfigure.integration.IntegrationAutoConfiguration
 | 
			
		||||
org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
 | 
			
		||||
org.springframework.boot.autoconfigure.jdbc.DataSourceInitializationAutoConfiguration
 | 
			
		||||
org.springframework.boot.autoconfigure.jdbc.JdbcClientAutoConfiguration
 | 
			
		||||
org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration
 | 
			
		||||
org.springframework.boot.autoconfigure.jdbc.JndiDataSourceAutoConfiguration
 | 
			
		||||
org.springframework.boot.autoconfigure.jdbc.XADataSourceAutoConfiguration
 | 
			
		||||
org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration
 | 
			
		||||
org.springframework.boot.autoconfigure.jersey.JerseyAutoConfiguration
 | 
			
		||||
org.springframework.boot.autoconfigure.jooq.JooqAutoConfiguration
 | 
			
		||||
org.springframework.boot.autoconfigure.kafka.KafkaAutoConfiguration
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -61,12 +61,12 @@ import org.springframework.boot.autoconfigure.TestAutoConfigurationPackage;
 | 
			
		|||
import org.springframework.boot.autoconfigure.batch.BatchAutoConfiguration.SpringBootBatchConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.batch.domain.City;
 | 
			
		||||
import org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.EmbeddedDataSourceConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.DataSourceBuilder;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceTransactionManagerAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.EmbeddedDataSourceConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.init.DataSourceScriptDatabaseInitializer;
 | 
			
		||||
import org.springframework.boot.sql.init.DatabaseInitializationMode;
 | 
			
		||||
import org.springframework.boot.sql.init.DatabaseInitializationSettings;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -28,8 +28,8 @@ import org.springframework.boot.autoconfigure.AutoConfigurations;
 | 
			
		|||
import org.springframework.boot.autoconfigure.TestAutoConfigurationPackage;
 | 
			
		||||
import org.springframework.boot.autoconfigure.batch.BatchAutoConfiguration.SpringBootBatchConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.batch.domain.City;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.EmbeddedDataSourceConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceTransactionManagerAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.EmbeddedDataSourceConfiguration;
 | 
			
		||||
import org.springframework.boot.sql.init.DatabaseInitializationMode;
 | 
			
		||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
 | 
			
		||||
import org.springframework.boot.testsupport.classpath.ClassPathExclusions;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -40,8 +40,8 @@ import org.springframework.batch.core.repository.JobRestartException;
 | 
			
		|||
import org.springframework.batch.core.step.builder.StepBuilder;
 | 
			
		||||
import org.springframework.batch.core.step.tasklet.Tasklet;
 | 
			
		||||
import org.springframework.boot.autoconfigure.AutoConfigurations;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceTransactionManagerAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.init.DataSourceScriptDatabaseInitializer;
 | 
			
		||||
import org.springframework.boot.sql.init.DatabaseInitializationSettings;
 | 
			
		||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -23,8 +23,8 @@ import jakarta.persistence.EntityManagerFactory;
 | 
			
		|||
import org.junit.jupiter.api.AfterEach;
 | 
			
		||||
import org.junit.jupiter.api.Test;
 | 
			
		||||
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.EmbeddedDataSourceConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.EmbeddedDataSourceConfiguration;
 | 
			
		||||
import org.springframework.boot.test.util.TestPropertyValues;
 | 
			
		||||
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
 | 
			
		||||
import org.springframework.context.annotation.Bean;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -28,10 +28,10 @@ import org.springframework.boot.autoconfigure.TestAutoConfigurationPackage;
 | 
			
		|||
import org.springframework.boot.autoconfigure.data.empty.EmptyDataPackage;
 | 
			
		||||
import org.springframework.boot.autoconfigure.data.jdbc.city.City;
 | 
			
		||||
import org.springframework.boot.autoconfigure.data.jdbc.city.CityRepository;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceInitializationAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceInitializationAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceTransactionManagerAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.JdbcTemplateAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
 | 
			
		||||
import org.springframework.boot.testsupport.classpath.resources.WithResource;
 | 
			
		||||
import org.springframework.context.annotation.Bean;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -28,10 +28,10 @@ import org.springframework.boot.autoconfigure.data.alt.mongo.CityMongoDbReposito
 | 
			
		|||
import org.springframework.boot.autoconfigure.data.jpa.city.City;
 | 
			
		||||
import org.springframework.boot.autoconfigure.data.jpa.city.CityRepository;
 | 
			
		||||
import org.springframework.boot.autoconfigure.data.jpa.country.Country;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.EmbeddedDataSourceConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.task.TaskExecutionAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.task.TaskSchedulingAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.EmbeddedDataSourceConfiguration;
 | 
			
		||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
 | 
			
		||||
import org.springframework.context.annotation.Bean;
 | 
			
		||||
import org.springframework.context.annotation.ComponentScan.Filter;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -29,9 +29,9 @@ import org.springframework.boot.autoconfigure.data.jpa.city.CityRepository;
 | 
			
		|||
import org.springframework.boot.autoconfigure.data.mongo.country.Country;
 | 
			
		||||
import org.springframework.boot.autoconfigure.data.mongo.country.CountryRepository;
 | 
			
		||||
import org.springframework.boot.autoconfigure.domain.EntityScan;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.test.util.TestPropertyValues;
 | 
			
		||||
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
 | 
			
		||||
import org.springframework.context.annotation.Configuration;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -32,8 +32,8 @@ import org.springframework.boot.autoconfigure.data.neo4j.country.Country;
 | 
			
		|||
import org.springframework.boot.autoconfigure.data.neo4j.country.CountryRepository;
 | 
			
		||||
import org.springframework.boot.autoconfigure.data.neo4j.empty.EmptyMarker;
 | 
			
		||||
import org.springframework.boot.autoconfigure.domain.EntityScan;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.test.util.TestPropertyValues;
 | 
			
		||||
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
 | 
			
		||||
import org.springframework.context.annotation.Bean;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -26,9 +26,9 @@ import org.springframework.boot.autoconfigure.TestAutoConfigurationPackage;
 | 
			
		|||
import org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.data.jpa.city.City;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.EmbeddedDataSourceConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jackson.autoconfigure.JacksonAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.EmbeddedDataSourceConfiguration;
 | 
			
		||||
import org.springframework.boot.test.util.TestPropertyValues;
 | 
			
		||||
import org.springframework.boot.web.servlet.context.AnnotationConfigServletWebApplicationContext;
 | 
			
		||||
import org.springframework.context.annotation.Bean;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -23,8 +23,8 @@ import org.springframework.boot.autoconfigure.TestAutoConfigurationPackage;
 | 
			
		|||
import org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.data.jpa.city.City;
 | 
			
		||||
import org.springframework.boot.autoconfigure.data.jpa.city.CityRepository;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.test.context.runner.WebApplicationContextRunner;
 | 
			
		||||
import org.springframework.context.annotation.Configuration;
 | 
			
		||||
import org.springframework.data.geo.Distance;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -21,7 +21,7 @@ import org.flywaydb.core.api.Location;
 | 
			
		|||
import org.junit.jupiter.api.Test;
 | 
			
		||||
 | 
			
		||||
import org.springframework.boot.autoconfigure.AutoConfigurations;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.EmbeddedDataSourceConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.EmbeddedDataSourceConfiguration;
 | 
			
		||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
 | 
			
		||||
import org.springframework.boot.testsupport.classpath.ClassPathExclusions;
 | 
			
		||||
import org.springframework.boot.testsupport.classpath.ClassPathOverrides;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -65,15 +65,15 @@ import org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration.Fly
 | 
			
		|||
import org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration.OracleFlywayConfigurationCustomizer;
 | 
			
		||||
import org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration.PostgresqlFlywayConfigurationCustomizer;
 | 
			
		||||
import org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration.SqlServerFlywayConfigurationCustomizer;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.EmbeddedDataSourceConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
 | 
			
		||||
import org.springframework.boot.jdbc.DataSourceBuilder;
 | 
			
		||||
import org.springframework.boot.jdbc.EmbeddedDatabaseConnection;
 | 
			
		||||
import org.springframework.boot.jdbc.SchemaManagement;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceProperties;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.EmbeddedDataSourceConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.orm.jpa.EntityManagerFactoryBuilder;
 | 
			
		||||
import org.springframework.boot.test.context.FilteredClassLoader;
 | 
			
		||||
import org.springframework.boot.test.context.assertj.AssertableApplicationContext;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -29,9 +29,9 @@ import org.junit.jupiter.api.extension.ExtendWith;
 | 
			
		|||
 | 
			
		||||
import org.springframework.beans.factory.BeanCreationException;
 | 
			
		||||
import org.springframework.boot.autoconfigure.AutoConfigurations;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.context.properties.ConfigurationPropertiesBindException;
 | 
			
		||||
import org.springframework.boot.context.properties.bind.BindException;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.test.context.runner.WebApplicationContextRunner;
 | 
			
		||||
import org.springframework.boot.test.system.CapturedOutput;
 | 
			
		||||
import org.springframework.boot.test.system.OutputCaptureExtension;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -27,9 +27,9 @@ import org.junit.jupiter.api.Test;
 | 
			
		|||
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
 | 
			
		||||
import org.springframework.boot.autoconfigure.AutoConfigurations;
 | 
			
		||||
import org.springframework.boot.autoconfigure.hazelcast.HazelcastJpaDependencyAutoConfiguration.HazelcastInstanceEntityManagerFactoryDependsOnPostProcessor;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.orm.jpa.EntityManagerFactoryDependsOnPostProcessor;
 | 
			
		||||
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.test.context.assertj.AssertableApplicationContext;
 | 
			
		||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
 | 
			
		||||
import org.springframework.context.annotation.Bean;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -41,10 +41,6 @@ import org.springframework.beans.PropertyAccessorFactory;
 | 
			
		|||
import org.springframework.boot.autoconfigure.AutoConfigurations;
 | 
			
		||||
import org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.integration.IntegrationAutoConfiguration.IntegrationComponentScanConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.EmbeddedDataSourceConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.rsocket.RSocketMessagingAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.rsocket.RSocketRequesterAutoConfiguration;
 | 
			
		||||
| 
						 | 
				
			
			@ -53,6 +49,10 @@ import org.springframework.boot.autoconfigure.rsocket.RSocketStrategiesAutoConfi
 | 
			
		|||
import org.springframework.boot.autoconfigure.task.TaskSchedulingAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.context.annotation.UserConfigurations;
 | 
			
		||||
import org.springframework.boot.context.properties.source.MutuallyExclusiveConfigurationPropertiesException;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceTransactionManagerAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.EmbeddedDataSourceConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.JdbcTemplateAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.init.DataSourceScriptDatabaseInitializer;
 | 
			
		||||
import org.springframework.boot.sql.init.DatabaseInitializationMode;
 | 
			
		||||
import org.springframework.boot.sql.init.DatabaseInitializationSettings;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,138 +0,0 @@
 | 
			
		|||
/*
 | 
			
		||||
 * Copyright 2012-present 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.
 | 
			
		||||
 * You may obtain a copy of the License at
 | 
			
		||||
 *
 | 
			
		||||
 *      https://www.apache.org/licenses/LICENSE-2.0
 | 
			
		||||
 *
 | 
			
		||||
 * Unless required by applicable law or agreed to in writing, software
 | 
			
		||||
 * distributed under the License is distributed on an "AS IS" BASIS,
 | 
			
		||||
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
			
		||||
 * See the License for the specific language governing permissions and
 | 
			
		||||
 * limitations under the License.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
package org.springframework.boot.autoconfigure.jdbc;
 | 
			
		||||
 | 
			
		||||
import org.junit.jupiter.api.Test;
 | 
			
		||||
 | 
			
		||||
import org.springframework.boot.autoconfigure.AutoConfigurations;
 | 
			
		||||
import org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
 | 
			
		||||
import org.springframework.boot.testsupport.classpath.resources.WithResource;
 | 
			
		||||
import org.springframework.jdbc.core.JdbcOperations;
 | 
			
		||||
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
 | 
			
		||||
import org.springframework.jdbc.core.simple.JdbcClient;
 | 
			
		||||
 | 
			
		||||
import static org.assertj.core.api.Assertions.assertThat;
 | 
			
		||||
import static org.mockito.Mockito.mock;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Tests for {@link JdbcClientAutoConfiguration}.
 | 
			
		||||
 *
 | 
			
		||||
 * @author Stephane Nicoll
 | 
			
		||||
 */
 | 
			
		||||
class JdbcClientAutoConfigurationTests {
 | 
			
		||||
 | 
			
		||||
	private final ApplicationContextRunner contextRunner = new ApplicationContextRunner()
 | 
			
		||||
		.withPropertyValues("spring.datasource.generate-unique-name=true")
 | 
			
		||||
		.withConfiguration(AutoConfigurations.of(DataSourceAutoConfiguration.class, JdbcTemplateAutoConfiguration.class,
 | 
			
		||||
				JdbcClientAutoConfiguration.class));
 | 
			
		||||
 | 
			
		||||
	@Test
 | 
			
		||||
	void jdbcClientWhenNoAvailableJdbcTemplateIsNotCreated() {
 | 
			
		||||
		new ApplicationContextRunner()
 | 
			
		||||
			.withConfiguration(
 | 
			
		||||
					AutoConfigurations.of(DataSourceAutoConfiguration.class, JdbcClientAutoConfiguration.class))
 | 
			
		||||
			.run((context) -> assertThat(context).doesNotHaveBean(JdbcClient.class));
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	@Test
 | 
			
		||||
	void jdbcClientWhenExistingJdbcTemplateIsCreated() {
 | 
			
		||||
		this.contextRunner.run((context) -> {
 | 
			
		||||
			assertThat(context).hasSingleBean(JdbcClient.class);
 | 
			
		||||
			NamedParameterJdbcTemplate namedParameterJdbcTemplate = context.getBean(NamedParameterJdbcTemplate.class);
 | 
			
		||||
			assertThat(namedParameterJdbcTemplate.getJdbcOperations()).isEqualTo(context.getBean(JdbcOperations.class));
 | 
			
		||||
		});
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	@Test
 | 
			
		||||
	void jdbcClientWithCustomJdbcClientIsNotCreated() {
 | 
			
		||||
		this.contextRunner.withBean("customJdbcClient", JdbcClient.class, () -> mock(JdbcClient.class))
 | 
			
		||||
			.run((context) -> {
 | 
			
		||||
				assertThat(context).hasSingleBean(JdbcClient.class);
 | 
			
		||||
				assertThat(context.getBean(JdbcClient.class)).isEqualTo(context.getBean("customJdbcClient"));
 | 
			
		||||
			});
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	@Test
 | 
			
		||||
	@WithResource(name = "db/city/V1__init.sql", content = """
 | 
			
		||||
			CREATE SEQUENCE city_seq INCREMENT BY 50;
 | 
			
		||||
			CREATE TABLE CITY (
 | 
			
		||||
			  id         BIGINT GENERATED BY DEFAULT AS IDENTITY,
 | 
			
		||||
			  name VARCHAR(30),
 | 
			
		||||
			  state VARCHAR(30),
 | 
			
		||||
			  country VARCHAR(30),
 | 
			
		||||
			  map VARCHAR(30)
 | 
			
		||||
			);
 | 
			
		||||
			""")
 | 
			
		||||
	void jdbcClientIsOrderedAfterFlywayMigration() {
 | 
			
		||||
		this.contextRunner.withUserConfiguration(JdbcClientDataSourceMigrationValidator.class)
 | 
			
		||||
			.withPropertyValues("spring.flyway.locations:classpath:db/city")
 | 
			
		||||
			.withConfiguration(AutoConfigurations.of(FlywayAutoConfiguration.class))
 | 
			
		||||
			.run((context) -> {
 | 
			
		||||
				assertThat(context).hasNotFailed().hasSingleBean(JdbcClient.class);
 | 
			
		||||
				assertThat(context.getBean(JdbcClientDataSourceMigrationValidator.class).count).isZero();
 | 
			
		||||
			});
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	@Test
 | 
			
		||||
	@WithResource(name = "db/changelog/db.changelog-city.yaml", content = """
 | 
			
		||||
			databaseChangeLog:
 | 
			
		||||
			- changeSet:
 | 
			
		||||
			    id: 1
 | 
			
		||||
			    author: dsyer
 | 
			
		||||
			    changes:
 | 
			
		||||
			      - createSequence:
 | 
			
		||||
			          sequenceName: city_seq
 | 
			
		||||
			          incrementBy: 50
 | 
			
		||||
			      - createTable:
 | 
			
		||||
			          tableName: city
 | 
			
		||||
			          columns:
 | 
			
		||||
			            - column:
 | 
			
		||||
			                name: id
 | 
			
		||||
			                type: bigint
 | 
			
		||||
			                autoIncrement: true
 | 
			
		||||
			                constraints:
 | 
			
		||||
			                  primaryKey: true
 | 
			
		||||
			                  nullable: false
 | 
			
		||||
			            - column:
 | 
			
		||||
			                name: name
 | 
			
		||||
			                type: varchar(50)
 | 
			
		||||
			                constraints:
 | 
			
		||||
			                  nullable: false
 | 
			
		||||
			""")
 | 
			
		||||
	void jdbcClientIsOrderedAfterLiquibaseMigration() {
 | 
			
		||||
		this.contextRunner.withUserConfiguration(JdbcClientDataSourceMigrationValidator.class)
 | 
			
		||||
			.withPropertyValues("spring.liquibase.change-log:classpath:db/changelog/db.changelog-city.yaml")
 | 
			
		||||
			.withConfiguration(AutoConfigurations.of(LiquibaseAutoConfiguration.class))
 | 
			
		||||
			.run((context) -> {
 | 
			
		||||
				assertThat(context).hasNotFailed().hasSingleBean(JdbcClient.class);
 | 
			
		||||
				assertThat(context.getBean(JdbcClientDataSourceMigrationValidator.class).count).isZero();
 | 
			
		||||
			});
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	static class JdbcClientDataSourceMigrationValidator {
 | 
			
		||||
 | 
			
		||||
		private final Long count;
 | 
			
		||||
 | 
			
		||||
		JdbcClientDataSourceMigrationValidator(JdbcClient jdbcClient) {
 | 
			
		||||
			this.count = jdbcClient.sql("SELECT COUNT(*) from CITY").query(Long.class).single();
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -22,7 +22,7 @@ import liquibase.integration.spring.SpringLiquibase;
 | 
			
		|||
import org.junit.jupiter.api.Test;
 | 
			
		||||
 | 
			
		||||
import org.springframework.boot.autoconfigure.AutoConfigurations;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.EmbeddedDataSourceConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.EmbeddedDataSourceConfiguration;
 | 
			
		||||
import org.springframework.boot.test.context.assertj.AssertableApplicationContext;
 | 
			
		||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
 | 
			
		||||
import org.springframework.boot.test.context.runner.ContextConsumer;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -56,15 +56,15 @@ import org.springframework.aot.hint.predicate.RuntimeHintsPredicates;
 | 
			
		|||
import org.springframework.beans.factory.BeanCreationException;
 | 
			
		||||
import org.springframework.beans.factory.config.BeanDefinition;
 | 
			
		||||
import org.springframework.boot.autoconfigure.AutoConfigurations;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.EmbeddedDataSourceConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jooq.JooqAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration.LiquibaseAutoConfigurationRuntimeHints;
 | 
			
		||||
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.DataSourceBuilder;
 | 
			
		||||
import org.springframework.boot.jdbc.EmbeddedDatabaseConnection;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.EmbeddedDataSourceConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.JdbcTemplateAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.orm.jpa.EntityManagerFactoryBuilder;
 | 
			
		||||
import org.springframework.boot.test.context.FilteredClassLoader;
 | 
			
		||||
import org.springframework.boot.test.context.assertj.AssertableApplicationContext;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -38,11 +38,11 @@ import org.junit.jupiter.api.Test;
 | 
			
		|||
import org.springframework.boot.autoconfigure.AutoConfigurations;
 | 
			
		||||
import org.springframework.boot.autoconfigure.TestAutoConfigurationPackage;
 | 
			
		||||
import org.springframework.boot.autoconfigure.data.jpa.country.Country;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceInitializationAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.orm.jpa.test.City;
 | 
			
		||||
import org.springframework.boot.jdbc.DataSourceBuilder;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceInitializationAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceTransactionManagerAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.orm.jpa.EntityManagerFactoryBuilder;
 | 
			
		||||
import org.springframework.boot.test.context.assertj.AssertableApplicationContext;
 | 
			
		||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -31,8 +31,8 @@ import org.junit.jupiter.api.Test;
 | 
			
		|||
 | 
			
		||||
import org.springframework.boot.autoconfigure.AutoConfigurations;
 | 
			
		||||
import org.springframework.boot.autoconfigure.TestAutoConfigurationPackage;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.orm.jpa.test.City;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
 | 
			
		||||
import org.springframework.context.annotation.Bean;
 | 
			
		||||
import org.springframework.context.annotation.Configuration;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -21,7 +21,7 @@ import org.junit.jupiter.api.Test;
 | 
			
		|||
 | 
			
		||||
import org.springframework.boot.autoconfigure.AutoConfigurations;
 | 
			
		||||
import org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
 | 
			
		||||
import org.springframework.cache.annotation.EnableCaching;
 | 
			
		||||
import org.springframework.context.annotation.Configuration;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -23,9 +23,9 @@ import javax.sql.DataSource;
 | 
			
		|||
import org.junit.jupiter.api.Test;
 | 
			
		||||
 | 
			
		||||
import org.springframework.boot.autoconfigure.AutoConfigurations;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.SchemaManagement;
 | 
			
		||||
import org.springframework.boot.jdbc.SchemaManagementProvider;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
 | 
			
		||||
 | 
			
		||||
import static org.assertj.core.api.Assertions.assertThat;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -59,13 +59,13 @@ import org.springframework.beans.factory.annotation.Autowired;
 | 
			
		|||
import org.springframework.boot.autoconfigure.AutoConfigurations;
 | 
			
		||||
import org.springframework.boot.autoconfigure.TestAutoConfigurationPackage;
 | 
			
		||||
import org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.XADataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfigurationTests.JpaUsingApplicationListenerConfiguration.EventCapturingApplicationListener;
 | 
			
		||||
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration.HibernateRuntimeHints;
 | 
			
		||||
import org.springframework.boot.autoconfigure.orm.jpa.mapping.NonAnnotatedEntity;
 | 
			
		||||
import org.springframework.boot.autoconfigure.orm.jpa.test.City;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceTransactionManagerAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.XADataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy;
 | 
			
		||||
import org.springframework.boot.orm.jpa.hibernate.SpringJtaPlatform;
 | 
			
		||||
import org.springframework.boot.sql.init.dependency.DependsOnDatabaseInitialization;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -46,10 +46,10 @@ import org.quartz.simpl.RAMJobStore;
 | 
			
		|||
import org.springframework.beans.factory.annotation.Autowired;
 | 
			
		||||
import org.springframework.boot.autoconfigure.AutoConfigurations;
 | 
			
		||||
import org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceProperties;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceTransactionManagerAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.init.DataSourceScriptDatabaseInitializer;
 | 
			
		||||
import org.springframework.boot.sql.init.DatabaseInitializationSettings;
 | 
			
		||||
import org.springframework.boot.test.context.assertj.AssertableApplicationContext;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -38,8 +38,8 @@ import org.junit.jupiter.api.Test;
 | 
			
		|||
 | 
			
		||||
import org.springframework.beans.factory.BeanCreationException;
 | 
			
		||||
import org.springframework.boot.autoconfigure.AutoConfigurations;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.r2dbc.SimpleConnectionFactoryProvider.SimpleTestConnectionFactory;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.r2dbc.EmbeddedDatabaseConnection;
 | 
			
		||||
import org.springframework.boot.r2dbc.OptionsCapableConnectionFactory;
 | 
			
		||||
import org.springframework.boot.test.context.FilteredClassLoader;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -19,10 +19,10 @@ package org.springframework.boot.autoconfigure.security.jpa;
 | 
			
		|||
import org.junit.jupiter.api.Test;
 | 
			
		||||
 | 
			
		||||
import org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.EmbeddedDataSourceConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.EmbeddedDataSourceConfiguration;
 | 
			
		||||
import org.springframework.boot.test.context.SpringBootContextLoader;
 | 
			
		||||
import org.springframework.context.annotation.Import;
 | 
			
		||||
import org.springframework.test.annotation.DirtiesContext;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -30,7 +30,6 @@ import org.junit.jupiter.api.Test;
 | 
			
		|||
import org.springframework.boot.autoconfigure.AutoConfigurations;
 | 
			
		||||
import org.springframework.boot.autoconfigure.TestAutoConfigurationPackage;
 | 
			
		||||
import org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.security.jpa.City;
 | 
			
		||||
import org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration;
 | 
			
		||||
| 
						 | 
				
			
			@ -38,6 +37,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
 | 
			
		|||
import org.springframework.boot.context.properties.ConfigurationPropertiesBinding;
 | 
			
		||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
 | 
			
		||||
import org.springframework.boot.convert.ApplicationConversionService;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.test.context.FilteredClassLoader;
 | 
			
		||||
import org.springframework.boot.test.context.runner.WebApplicationContextRunner;
 | 
			
		||||
import org.springframework.boot.testsupport.classpath.resources.WithResource;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -27,11 +27,11 @@ import org.junit.jupiter.api.Test;
 | 
			
		|||
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
 | 
			
		||||
import org.springframework.boot.autoconfigure.AutoConfigurations;
 | 
			
		||||
import org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.web.ServerProperties;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceTransactionManagerAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.JdbcTemplateAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.init.DataSourceScriptDatabaseInitializer;
 | 
			
		||||
import org.springframework.boot.sql.init.DatabaseInitializationMode;
 | 
			
		||||
import org.springframework.boot.sql.init.DatabaseInitializationSettings;
 | 
			
		||||
| 
						 | 
				
			
			@ -261,7 +261,7 @@ class SessionAutoConfigurationJdbcTests extends AbstractSessionAutoConfiguration
 | 
			
		|||
				DO UPDATE SET ATTRIBUTE_BYTES = EXCLUDED.ATTRIBUTE_BYTES
 | 
			
		||||
				""";
 | 
			
		||||
		this.contextRunner.withUserConfiguration(CustomJdbcIndexedSessionRepositoryCustomizerConfiguration.class)
 | 
			
		||||
			.withConfiguration(AutoConfigurations.of(JdbcSessionConfiguration.class))
 | 
			
		||||
			.withConfiguration(AutoConfigurations.of(SessionAutoConfiguration.class))
 | 
			
		||||
			.run((context) -> {
 | 
			
		||||
				JdbcIndexedSessionRepository repository = validateSessionRepository(context,
 | 
			
		||||
						JdbcIndexedSessionRepository.class);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1997,6 +1997,7 @@ bom {
 | 
			
		|||
				"spring-boot-docker-compose",
 | 
			
		||||
				"spring-boot-jackson",
 | 
			
		||||
				"spring-boot-jarmode-tools",
 | 
			
		||||
				"spring-boot-jdbc",
 | 
			
		||||
				"spring-boot-jetty",
 | 
			
		||||
				"spring-boot-jms",
 | 
			
		||||
				"spring-boot-jsonb",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -52,6 +52,7 @@ dependencies {
 | 
			
		|||
 | 
			
		||||
	intTestRuntimeOnly("org.springframework:spring-web")
 | 
			
		||||
 | 
			
		||||
	optional(project(":spring-boot-project:spring-boot-jdbc"))
 | 
			
		||||
	optional("io.projectreactor:reactor-core")
 | 
			
		||||
	optional("io.r2dbc:r2dbc-spi")
 | 
			
		||||
	optional("jakarta.servlet:jakarta.servlet-api")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -36,11 +36,11 @@ import org.springframework.boot.autoconfigure.condition.ConditionOutcome;
 | 
			
		|||
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
 | 
			
		||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
 | 
			
		||||
import org.springframework.boot.autoconfigure.condition.SpringBootCondition;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties;
 | 
			
		||||
import org.springframework.boot.autoconfigure.orm.jpa.EntityManagerFactoryDependsOnPostProcessor;
 | 
			
		||||
import org.springframework.boot.devtools.autoconfigure.DevToolsDataSourceAutoConfiguration.DatabaseShutdownExecutorEntityManagerFactoryDependsOnPostProcessor;
 | 
			
		||||
import org.springframework.boot.devtools.autoconfigure.DevToolsDataSourceAutoConfiguration.DevToolsDataSourceCondition;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceProperties;
 | 
			
		||||
import org.springframework.context.annotation.Bean;
 | 
			
		||||
import org.springframework.context.annotation.ConditionContext;
 | 
			
		||||
import org.springframework.context.annotation.Conditional;
 | 
			
		||||
| 
						 | 
				
			
			@ -60,7 +60,7 @@ import org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean;
 | 
			
		|||
@ConditionalOnClass(DataSource.class)
 | 
			
		||||
@ConditionalOnEnabledDevTools
 | 
			
		||||
@Conditional(DevToolsDataSourceCondition.class)
 | 
			
		||||
@AutoConfiguration(after = DataSourceAutoConfiguration.class)
 | 
			
		||||
@AutoConfiguration(afterName = "org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration")
 | 
			
		||||
@Import(DatabaseShutdownExecutorEntityManagerFactoryDependsOnPostProcessor.class)
 | 
			
		||||
public class DevToolsDataSourceAutoConfiguration {
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -23,7 +23,7 @@ import javax.sql.DataSource;
 | 
			
		|||
 | 
			
		||||
import org.junit.jupiter.api.Test;
 | 
			
		||||
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.testsupport.classpath.ClassPathExclusions;
 | 
			
		||||
import org.springframework.context.ConfigurableApplicationContext;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -33,7 +33,7 @@ import org.junit.jupiter.api.BeforeEach;
 | 
			
		|||
import org.junit.jupiter.api.Test;
 | 
			
		||||
import org.junit.jupiter.api.io.TempDir;
 | 
			
		||||
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.context.ConfigurableApplicationContext;
 | 
			
		||||
import org.springframework.jdbc.core.JdbcTemplate;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -27,6 +27,7 @@ description = "Spring Boot Docker Compose Support"
 | 
			
		|||
dependencies {
 | 
			
		||||
	api(project(":spring-boot-project:spring-boot-all"))
 | 
			
		||||
 | 
			
		||||
	dockerTestImplementation(project(":spring-boot-project:spring-boot-jdbc"))
 | 
			
		||||
	dockerTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support-docker"))
 | 
			
		||||
	dockerTestImplementation("com.hazelcast:hazelcast")
 | 
			
		||||
	dockerTestImplementation("com.redis:testcontainers-redis")
 | 
			
		||||
| 
						 | 
				
			
			@ -51,6 +52,7 @@ dependencies {
 | 
			
		|||
	optional(project(":spring-boot-project:spring-boot-artemis"))
 | 
			
		||||
	optional(project(":spring-boot-project:spring-boot-autoconfigure-all"))
 | 
			
		||||
	optional(project(":spring-boot-project:spring-boot-actuator-autoconfigure"))
 | 
			
		||||
	optional(project(":spring-boot-project:spring-boot-jdbc"))
 | 
			
		||||
	optional("com.hazelcast:hazelcast")
 | 
			
		||||
	optional("io.r2dbc:r2dbc-spi")
 | 
			
		||||
	optional("org.mongodb:mongodb-driver-core")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -18,9 +18,9 @@ package org.springframework.boot.docker.compose.service.connection.clickhouse;
 | 
			
		|||
 | 
			
		||||
import java.sql.Driver;
 | 
			
		||||
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.docker.compose.service.connection.test.DockerComposeTest;
 | 
			
		||||
import org.springframework.boot.jdbc.DatabaseDriver;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.testsupport.container.TestImage;
 | 
			
		||||
import org.springframework.jdbc.core.JdbcTemplate;
 | 
			
		||||
import org.springframework.jdbc.datasource.SimpleDriverDataSource;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -16,8 +16,8 @@
 | 
			
		|||
 | 
			
		||||
package org.springframework.boot.docker.compose.service.connection.mariadb;
 | 
			
		||||
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.docker.compose.service.connection.test.DockerComposeTest;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.testsupport.container.TestImage;
 | 
			
		||||
 | 
			
		||||
import static org.assertj.core.api.Assertions.assertThat;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -16,8 +16,8 @@
 | 
			
		|||
 | 
			
		||||
package org.springframework.boot.docker.compose.service.connection.mysql;
 | 
			
		||||
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.docker.compose.service.connection.test.DockerComposeTest;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.testsupport.container.TestImage;
 | 
			
		||||
 | 
			
		||||
import static org.assertj.core.api.Assertions.assertThat;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -21,9 +21,9 @@ import java.time.Duration;
 | 
			
		|||
 | 
			
		||||
import org.awaitility.Awaitility;
 | 
			
		||||
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.docker.compose.service.connection.test.DockerComposeTest;
 | 
			
		||||
import org.springframework.boot.jdbc.DatabaseDriver;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.testsupport.container.TestImage;
 | 
			
		||||
import org.springframework.jdbc.core.JdbcTemplate;
 | 
			
		||||
import org.springframework.jdbc.datasource.SimpleDriverDataSource;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -22,9 +22,9 @@ import java.time.Duration;
 | 
			
		|||
import org.awaitility.Awaitility;
 | 
			
		||||
import org.junit.jupiter.api.condition.OS;
 | 
			
		||||
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.docker.compose.service.connection.test.DockerComposeTest;
 | 
			
		||||
import org.springframework.boot.jdbc.DatabaseDriver;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.testsupport.container.TestImage;
 | 
			
		||||
import org.springframework.boot.testsupport.junit.DisabledOnOs;
 | 
			
		||||
import org.springframework.jdbc.core.JdbcTemplate;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -18,9 +18,9 @@ package org.springframework.boot.docker.compose.service.connection.postgres;
 | 
			
		|||
 | 
			
		||||
import java.sql.Driver;
 | 
			
		||||
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.docker.compose.service.connection.test.DockerComposeTest;
 | 
			
		||||
import org.springframework.boot.jdbc.DatabaseDriver;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.testsupport.container.TestImage;
 | 
			
		||||
import org.springframework.jdbc.core.JdbcTemplate;
 | 
			
		||||
import org.springframework.jdbc.datasource.SimpleDriverDataSource;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -20,9 +20,9 @@ import java.sql.Driver;
 | 
			
		|||
 | 
			
		||||
import org.junit.jupiter.api.condition.OS;
 | 
			
		||||
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.docker.compose.service.connection.test.DockerComposeTest;
 | 
			
		||||
import org.springframework.boot.jdbc.DatabaseDriver;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.testsupport.container.TestImage;
 | 
			
		||||
import org.springframework.boot.testsupport.junit.DisabledOnOs;
 | 
			
		||||
import org.springframework.jdbc.core.JdbcTemplate;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -16,11 +16,11 @@
 | 
			
		|||
 | 
			
		||||
package org.springframework.boot.docker.compose.service.connection.clickhouse;
 | 
			
		||||
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.docker.compose.core.RunningService;
 | 
			
		||||
import org.springframework.boot.docker.compose.service.connection.DockerComposeConnectionDetailsFactory;
 | 
			
		||||
import org.springframework.boot.docker.compose.service.connection.DockerComposeConnectionSource;
 | 
			
		||||
import org.springframework.boot.docker.compose.service.connection.jdbc.JdbcUrlBuilder;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.JdbcConnectionDetails;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * {@link DockerComposeConnectionDetailsFactory} to create {@link JdbcConnectionDetails}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -17,8 +17,8 @@
 | 
			
		|||
package org.springframework.boot.docker.compose.service.connection.flyway;
 | 
			
		||||
 | 
			
		||||
import org.springframework.boot.autoconfigure.flyway.FlywayConnectionDetails;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.autoconfigure.service.connection.ConnectionDetailsFactory;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.JdbcConnectionDetails;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * {@link ConnectionDetailsFactory} that produces {@link FlywayConnectionDetails} by
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -16,6 +16,6 @@
 | 
			
		|||
 | 
			
		||||
/**
 | 
			
		||||
 * Utilities to help when creating
 | 
			
		||||
 * {@link org.springframework.boot.autoconfigure.jdbc.JdbcConnectionDetails}.
 | 
			
		||||
 * {@link org.springframework.boot.jdbc.autoconfigure.JdbcConnectionDetails}.
 | 
			
		||||
 */
 | 
			
		||||
package org.springframework.boot.docker.compose.service.connection.jdbc;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -16,9 +16,9 @@
 | 
			
		|||
 | 
			
		||||
package org.springframework.boot.docker.compose.service.connection.liquibase;
 | 
			
		||||
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.autoconfigure.liquibase.LiquibaseConnectionDetails;
 | 
			
		||||
import org.springframework.boot.autoconfigure.service.connection.ConnectionDetailsFactory;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.JdbcConnectionDetails;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * {@link ConnectionDetailsFactory} that produces {@link LiquibaseConnectionDetails} by
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -16,11 +16,11 @@
 | 
			
		|||
 | 
			
		||||
package org.springframework.boot.docker.compose.service.connection.mariadb;
 | 
			
		||||
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.docker.compose.core.RunningService;
 | 
			
		||||
import org.springframework.boot.docker.compose.service.connection.DockerComposeConnectionDetailsFactory;
 | 
			
		||||
import org.springframework.boot.docker.compose.service.connection.DockerComposeConnectionSource;
 | 
			
		||||
import org.springframework.boot.docker.compose.service.connection.jdbc.JdbcUrlBuilder;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.JdbcConnectionDetails;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * {@link DockerComposeConnectionDetailsFactory} to create {@link JdbcConnectionDetails}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -16,11 +16,11 @@
 | 
			
		|||
 | 
			
		||||
package org.springframework.boot.docker.compose.service.connection.mysql;
 | 
			
		||||
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.docker.compose.core.RunningService;
 | 
			
		||||
import org.springframework.boot.docker.compose.service.connection.DockerComposeConnectionDetailsFactory;
 | 
			
		||||
import org.springframework.boot.docker.compose.service.connection.DockerComposeConnectionSource;
 | 
			
		||||
import org.springframework.boot.docker.compose.service.connection.jdbc.JdbcUrlBuilder;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.JdbcConnectionDetails;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * {@link DockerComposeConnectionDetailsFactory} to create {@link JdbcConnectionDetails}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -16,8 +16,8 @@
 | 
			
		|||
 | 
			
		||||
package org.springframework.boot.docker.compose.service.connection.oracle;
 | 
			
		||||
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.docker.compose.service.connection.DockerComposeConnectionDetailsFactory;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.JdbcConnectionDetails;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * {@link DockerComposeConnectionDetailsFactory} to create {@link JdbcConnectionDetails}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -16,10 +16,10 @@
 | 
			
		|||
 | 
			
		||||
package org.springframework.boot.docker.compose.service.connection.oracle;
 | 
			
		||||
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.docker.compose.core.RunningService;
 | 
			
		||||
import org.springframework.boot.docker.compose.service.connection.DockerComposeConnectionDetailsFactory;
 | 
			
		||||
import org.springframework.boot.docker.compose.service.connection.DockerComposeConnectionSource;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.util.StringUtils;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -16,8 +16,8 @@
 | 
			
		|||
 | 
			
		||||
package org.springframework.boot.docker.compose.service.connection.oracle;
 | 
			
		||||
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.docker.compose.service.connection.DockerComposeConnectionDetailsFactory;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.JdbcConnectionDetails;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * {@link DockerComposeConnectionDetailsFactory} to create {@link JdbcConnectionDetails}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -19,11 +19,11 @@ package org.springframework.boot.docker.compose.service.connection.postgres;
 | 
			
		|||
import java.net.URLEncoder;
 | 
			
		||||
import java.nio.charset.StandardCharsets;
 | 
			
		||||
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.docker.compose.core.RunningService;
 | 
			
		||||
import org.springframework.boot.docker.compose.service.connection.DockerComposeConnectionDetailsFactory;
 | 
			
		||||
import org.springframework.boot.docker.compose.service.connection.DockerComposeConnectionSource;
 | 
			
		||||
import org.springframework.boot.docker.compose.service.connection.jdbc.JdbcUrlBuilder;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.core.env.Environment;
 | 
			
		||||
import org.springframework.util.StringUtils;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -16,11 +16,11 @@
 | 
			
		|||
 | 
			
		||||
package org.springframework.boot.docker.compose.service.connection.sqlserver;
 | 
			
		||||
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.docker.compose.core.RunningService;
 | 
			
		||||
import org.springframework.boot.docker.compose.service.connection.DockerComposeConnectionDetailsFactory;
 | 
			
		||||
import org.springframework.boot.docker.compose.service.connection.DockerComposeConnectionSource;
 | 
			
		||||
import org.springframework.boot.docker.compose.service.connection.jdbc.JdbcUrlBuilder;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.JdbcConnectionDetails;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * {@link DockerComposeConnectionDetailsFactory} to create {@link JdbcConnectionDetails}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -21,9 +21,9 @@ import java.util.Map;
 | 
			
		|||
 | 
			
		||||
import org.junit.jupiter.api.Test;
 | 
			
		||||
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.boot.docker.compose.core.ConnectionPorts;
 | 
			
		||||
import org.springframework.boot.docker.compose.core.RunningService;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.JdbcConnectionDetails;
 | 
			
		||||
import org.springframework.mock.env.MockEnvironment;
 | 
			
		||||
 | 
			
		||||
import static org.assertj.core.api.Assertions.assertThat;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -83,6 +83,7 @@ dependencies {
 | 
			
		|||
	autoConfiguration(project(path: ":spring-boot-project:spring-boot-autoconfigure-all", configuration: "autoConfigurationMetadata"))
 | 
			
		||||
	autoConfiguration(project(path: ":spring-boot-project:spring-boot-devtools", configuration: "autoConfigurationMetadata"))
 | 
			
		||||
	autoConfiguration(project(path: ":spring-boot-project:spring-boot-jackson", configuration: "autoConfigurationMetadata"))
 | 
			
		||||
	autoConfiguration(project(path: ":spring-boot-project:spring-boot-jdbc", configuration: "autoConfigurationMetadata"))
 | 
			
		||||
	autoConfiguration(project(path: ":spring-boot-project:spring-boot-jetty", configuration: "autoConfigurationMetadata"))
 | 
			
		||||
	autoConfiguration(project(path: ":spring-boot-project:spring-boot-jms", configuration: "autoConfigurationMetadata"))
 | 
			
		||||
	autoConfiguration(project(path: ":spring-boot-project:spring-boot-jsonb", configuration: "autoConfigurationMetadata"))
 | 
			
		||||
| 
						 | 
				
			
			@ -104,6 +105,7 @@ dependencies {
 | 
			
		|||
	configurationProperties(project(path: ":spring-boot-project:spring-boot-devtools", configuration: "configurationPropertiesMetadata"))
 | 
			
		||||
	configurationProperties(project(path: ":spring-boot-project:spring-boot-docker-compose", configuration: "configurationPropertiesMetadata"))
 | 
			
		||||
	configurationProperties(project(path: ":spring-boot-project:spring-boot-jackson", configuration: "configurationPropertiesMetadata"))
 | 
			
		||||
	configurationProperties(project(path: ":spring-boot-project:spring-boot-jdbc", configuration: "configurationPropertiesMetadata"))
 | 
			
		||||
	configurationProperties(project(path: ":spring-boot-project:spring-boot-jetty", configuration: "configurationPropertiesMetadata"))
 | 
			
		||||
	configurationProperties(project(path: ":spring-boot-project:spring-boot-jms", configuration: "configurationPropertiesMetadata"))
 | 
			
		||||
	configurationProperties(project(path: ":spring-boot-project:spring-boot-mail", configuration: "configurationPropertiesMetadata"))
 | 
			
		||||
| 
						 | 
				
			
			@ -124,6 +126,7 @@ dependencies {
 | 
			
		|||
	implementation(project(path: ":spring-boot-project:spring-boot-devtools"))
 | 
			
		||||
	implementation(project(path: ":spring-boot-project:spring-boot-docker-compose"))
 | 
			
		||||
	implementation(project(path: ":spring-boot-project:spring-boot-jackson"))
 | 
			
		||||
	implementation(project(path: ":spring-boot-project:spring-boot-jdbc"))
 | 
			
		||||
	implementation(project(path: ":spring-boot-project:spring-boot-jms"))
 | 
			
		||||
	implementation(project(path: ":spring-boot-project:spring-boot-jsonb"))
 | 
			
		||||
	implementation(project(path: ":spring-boot-project:spring-boot-reactor-netty"))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -18,8 +18,8 @@ package org.springframework.boot.docs.howto.dataaccess.configurecustomdatasource
 | 
			
		|||
 | 
			
		||||
import com.zaxxer.hikari.HikariDataSource;
 | 
			
		||||
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties;
 | 
			
		||||
import org.springframework.boot.context.properties.ConfigurationProperties;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceProperties;
 | 
			
		||||
import org.springframework.context.annotation.Bean;
 | 
			
		||||
import org.springframework.context.annotation.Configuration;
 | 
			
		||||
import org.springframework.context.annotation.Primary;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -19,8 +19,8 @@ package org.springframework.boot.docs.howto.dataaccess.configuretwodatasources;
 | 
			
		|||
import com.zaxxer.hikari.HikariDataSource;
 | 
			
		||||
 | 
			
		||||
import org.springframework.beans.factory.annotation.Qualifier;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties;
 | 
			
		||||
import org.springframework.boot.context.properties.ConfigurationProperties;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceProperties;
 | 
			
		||||
import org.springframework.context.annotation.Bean;
 | 
			
		||||
import org.springframework.context.annotation.Configuration;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -17,7 +17,7 @@
 | 
			
		|||
package org.springframework.boot.docs.using.autoconfiguration.disablingspecific;
 | 
			
		||||
 | 
			
		||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
 | 
			
		||||
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
 | 
			
		||||
public class MyApplication {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -17,8 +17,8 @@
 | 
			
		|||
package org.springframework.boot.docs.howto.dataaccess.configurecustomdatasource.configurable
 | 
			
		||||
 | 
			
		||||
import com.zaxxer.hikari.HikariDataSource
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties
 | 
			
		||||
import org.springframework.boot.context.properties.ConfigurationProperties
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceProperties
 | 
			
		||||
import org.springframework.context.annotation.Bean
 | 
			
		||||
import org.springframework.context.annotation.Configuration
 | 
			
		||||
import org.springframework.context.annotation.Primary
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -19,8 +19,8 @@ package org.springframework.boot.docs.howto.dataaccess.configuretwodatasources
 | 
			
		|||
import com.zaxxer.hikari.HikariDataSource
 | 
			
		||||
 | 
			
		||||
import org.springframework.beans.factory.annotation.Qualifier
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties
 | 
			
		||||
import org.springframework.boot.context.properties.ConfigurationProperties
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceProperties
 | 
			
		||||
import org.springframework.context.annotation.Bean
 | 
			
		||||
import org.springframework.context.annotation.Configuration
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -17,7 +17,7 @@
 | 
			
		|||
package org.springframework.boot.docs.using.autoconfiguration.disablingspecific
 | 
			
		||||
 | 
			
		||||
import org.springframework.boot.autoconfigure.SpringBootApplication
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration
 | 
			
		||||
 | 
			
		||||
@SpringBootApplication(exclude = [DataSourceAutoConfiguration::class])
 | 
			
		||||
class MyApplication
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -20,7 +20,7 @@ import javax.sql.DataSource;
 | 
			
		|||
 | 
			
		||||
import org.springframework.boot.SpringBootConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 | 
			
		||||
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * A sample {@link SpringBootConfiguration @ConfigurationProperties} that only enables the
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -0,0 +1,84 @@
 | 
			
		|||
/*
 | 
			
		||||
 * Copyright 2012-present 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.
 | 
			
		||||
 * You may obtain a copy of the License at
 | 
			
		||||
 *
 | 
			
		||||
 *      https://www.apache.org/licenses/LICENSE-2.0
 | 
			
		||||
 *
 | 
			
		||||
 * Unless required by applicable law or agreed to in writing, software
 | 
			
		||||
 * distributed under the License is distributed on an "AS IS" BASIS,
 | 
			
		||||
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
			
		||||
 * See the License for the specific language governing permissions and
 | 
			
		||||
 * limitations under the License.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
plugins {
 | 
			
		||||
	id "java-library"
 | 
			
		||||
	id "org.springframework.boot.auto-configuration"
 | 
			
		||||
	id "org.springframework.boot.configuration-properties"
 | 
			
		||||
	id "org.springframework.boot.deployed"
 | 
			
		||||
	id "org.springframework.boot.optional-dependencies"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
description = "Spring Boot JDBC"
 | 
			
		||||
 | 
			
		||||
dependencies {
 | 
			
		||||
	api(project(":spring-boot-project:spring-boot"))
 | 
			
		||||
	api("org.springframework:spring-jdbc")
 | 
			
		||||
 | 
			
		||||
	implementation(project(":spring-boot-project:spring-boot-tx"))
 | 
			
		||||
 | 
			
		||||
	optional(project(":spring-boot-project:spring-boot-autoconfigure"))
 | 
			
		||||
	optional("com.h2database:h2")
 | 
			
		||||
	optional("com.mchange:c3p0")
 | 
			
		||||
	optional("com.oracle.database.jdbc:ojdbc11")
 | 
			
		||||
	optional("com.oracle.database.jdbc:ucp11")
 | 
			
		||||
	optional("com.zaxxer:HikariCP")
 | 
			
		||||
	optional("org.apache.commons:commons-dbcp2") {
 | 
			
		||||
		exclude group: "commons-logging", module: "commons-logging"
 | 
			
		||||
	}
 | 
			
		||||
	optional("org.apache.tomcat:tomcat-jdbc")
 | 
			
		||||
	optional("org.postgresql:postgresql")
 | 
			
		||||
	optional("org.vibur:vibur-dbcp")
 | 
			
		||||
 | 
			
		||||
	testImplementation(project(":spring-boot-project:spring-boot-test"))
 | 
			
		||||
	testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
 | 
			
		||||
	testImplementation(testFixtures(project(":spring-boot-project:spring-boot")))
 | 
			
		||||
	testImplementation(testFixtures(project(":spring-boot-project:spring-boot-autoconfigure")))
 | 
			
		||||
	testImplementation("com.fasterxml.jackson.core:jackson-databind")
 | 
			
		||||
	testImplementation("com.ibm.db2:jcc")
 | 
			
		||||
	testImplementation("com.microsoft.sqlserver:mssql-jdbc")
 | 
			
		||||
	testImplementation("io.r2dbc:r2dbc-spi")
 | 
			
		||||
	testImplementation("org.hsqldb:hsqldb")
 | 
			
		||||
	testImplementation("org.mariadb.jdbc:mariadb-java-client") {
 | 
			
		||||
		exclude group: "org.slf4j", module: "jcl-over-slf4j"
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	testRuntimeOnly("ch.qos.logback:logback-classic")
 | 
			
		||||
	testRuntimeOnly("com.clickhouse:clickhouse-jdbc")
 | 
			
		||||
	testRuntimeOnly("com.mysql:mysql-connector-j")
 | 
			
		||||
	testRuntimeOnly("net.sourceforge.jtds:jtds")
 | 
			
		||||
	testRuntimeOnly("org.apache.derby:derby")
 | 
			
		||||
	testRuntimeOnly("org.apache.derby:derbytools")
 | 
			
		||||
	testRuntimeOnly("org.firebirdsql.jdbc:jaybird") {
 | 
			
		||||
		exclude group: "javax.resource", module: "connector-api"
 | 
			
		||||
	}
 | 
			
		||||
	testRuntimeOnly("org.testcontainers:jdbc") {
 | 
			
		||||
		exclude group: "javax.annotation", module: "javax.annotation-api"
 | 
			
		||||
		exclude group: "javax.xml.bind", module: "jaxb-api"
 | 
			
		||||
	}
 | 
			
		||||
	testRuntimeOnly("org.xerial:sqlite-jdbc")
 | 
			
		||||
	testRuntimeOnly("software.amazon.jdbc:aws-advanced-jdbc-wrapper")
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
tasks.named("checkSpringConfigurationMetadata").configure {
 | 
			
		||||
	exclusions = [
 | 
			
		||||
		"spring.datasource.dbcp2.*",
 | 
			
		||||
		"spring.datasource.hikari.*",
 | 
			
		||||
		"spring.datasource.oracleucp.*",
 | 
			
		||||
		"spring.datasource.tomcat.*",
 | 
			
		||||
	]
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -232,7 +232,6 @@ public final class DataSourceBuilder<T extends DataSource> {
 | 
			
		|||
	 * set.
 | 
			
		||||
	 * @param dataSource the source {@link DataSource}
 | 
			
		||||
	 * @return a new {@link DataSource} builder
 | 
			
		||||
	 * @since 2.5.0
 | 
			
		||||
	 */
 | 
			
		||||
	public static DataSourceBuilder<?> derivedFrom(DataSource dataSource) {
 | 
			
		||||
		return new DataSourceBuilder<>(unwrap(dataSource));
 | 
			
		||||
Some files were not shown because too many files have changed in this diff Show More
		Loading…
	
		Reference in New Issue