|
|
@ -270,18 +270,18 @@ public class PublicMetricsAutoConfigurationTests {
|
|
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
@Bean
|
|
|
|
public DataSource tomcatDataSource() {
|
|
|
|
public DataSource tomcatDataSource() {
|
|
|
|
return InitalizedBuilder.create()
|
|
|
|
return InitializedBuilder.create()
|
|
|
|
.type(org.apache.tomcat.jdbc.pool.DataSource.class).build();
|
|
|
|
.type(org.apache.tomcat.jdbc.pool.DataSource.class).build();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
@Bean
|
|
|
|
public DataSource hikariDS() {
|
|
|
|
public DataSource hikariDS() {
|
|
|
|
return InitalizedBuilder.create().type(HikariDataSource.class).build();
|
|
|
|
return InitializedBuilder.create().type(HikariDataSource.class).build();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
@Bean
|
|
|
|
public DataSource commonsDbcpDataSource() {
|
|
|
|
public DataSource commonsDbcpDataSource() {
|
|
|
|
return InitalizedBuilder.create().type(BasicDataSource.class).build();
|
|
|
|
return InitializedBuilder.create().type(BasicDataSource.class).build();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -291,13 +291,13 @@ public class PublicMetricsAutoConfigurationTests {
|
|
|
|
@Bean
|
|
|
|
@Bean
|
|
|
|
@Primary
|
|
|
|
@Primary
|
|
|
|
public DataSource myDataSource() {
|
|
|
|
public DataSource myDataSource() {
|
|
|
|
return InitalizedBuilder.create()
|
|
|
|
return InitializedBuilder.create()
|
|
|
|
.type(org.apache.tomcat.jdbc.pool.DataSource.class).build();
|
|
|
|
.type(org.apache.tomcat.jdbc.pool.DataSource.class).build();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
@Bean
|
|
|
|
public DataSource commonsDbcpDataSource() {
|
|
|
|
public DataSource commonsDbcpDataSource() {
|
|
|
|
return InitalizedBuilder.create().type(BasicDataSource.class).build();
|
|
|
|
return InitializedBuilder.create().type(BasicDataSource.class).build();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -307,13 +307,13 @@ public class PublicMetricsAutoConfigurationTests {
|
|
|
|
@Bean
|
|
|
|
@Bean
|
|
|
|
@Primary
|
|
|
|
@Primary
|
|
|
|
public DataSource myDataSource() {
|
|
|
|
public DataSource myDataSource() {
|
|
|
|
return InitalizedBuilder.create()
|
|
|
|
return InitializedBuilder.create()
|
|
|
|
.type(org.apache.tomcat.jdbc.pool.DataSource.class).build();
|
|
|
|
.type(org.apache.tomcat.jdbc.pool.DataSource.class).build();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
@Bean
|
|
|
|
public DataSource dataSource() {
|
|
|
|
public DataSource dataSource() {
|
|
|
|
return InitalizedBuilder.create().type(BasicDataSource.class).build();
|
|
|
|
return InitializedBuilder.create().type(BasicDataSource.class).build();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -381,7 +381,7 @@ public class PublicMetricsAutoConfigurationTests {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private static class InitalizedBuilder {
|
|
|
|
private static class InitializedBuilder {
|
|
|
|
|
|
|
|
|
|
|
|
public static DataSourceBuilder create() {
|
|
|
|
public static DataSourceBuilder create() {
|
|
|
|
return DataSourceBuilder.create()
|
|
|
|
return DataSourceBuilder.create()
|
|
|
|