databaseInitializer

@Bean
@ConditionalOnProperty(value = ["spring.exposed.generate-ddl"], havingValue = "true", matchIfMissing = false)
open fun databaseInitializer(): DatabaseInitializer

Returns a DatabaseInitializer that auto-creates the database schema, if enabled by the property spring.exposed.generate-ddl in the application.properties file.

The property spring.exposed.excluded-packages can be used to ensure that tables in specified packages are not auto-created.