Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class LettuceConnectionConfiguration extends RedisConnectionConfiguration {
clusterConfigurationProvider);
}

@Bean(destroyMethod = "shutdown")
@Bean
@ConditionalOnMissingBean(ClientResources.class)
DefaultClientResources lettuceClientResources(ObjectProvider<ClientResourcesBuilderCustomizer> customizers) {
DefaultClientResources.Builder builder = DefaultClientResources.builder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,7 @@ DSLContext dslContext() {
@EnableConfigurationProperties(DataSourceProperties.class)
abstract static class AbstractUserH2DataSourceConfiguration {

@Bean(destroyMethod = "shutdown")
@Bean
EmbeddedDatabase dataSource(DataSourceProperties properties) throws SQLException {
EmbeddedDatabase database = new EmbeddedDatabaseBuilder().setType(EmbeddedDatabaseType.H2)
.setName(getDatabaseName(properties))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void setBeanClassLoader(ClassLoader classLoader) {
this.classLoader = classLoader;
}

@Bean(destroyMethod = "shutdown")
@Bean
public EmbeddedDatabase dataSource(DataSourceProperties properties) {
EmbeddedDatabaseType type = EmbeddedDatabaseConnection.get(this.classLoader).getType();
String databaseName = properties.determineDatabaseName();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ static class CustomDataSourceConfiguration {

private final String name = UUID.randomUUID().toString();

@Bean(destroyMethod = "shutdown")
@Bean
EmbeddedDatabase dataSource() throws SQLException {
EmbeddedDatabase database = new EmbeddedDatabaseBuilder().setType(EmbeddedDatabaseType.H2)
.setName(this.name)
Expand Down
Loading