UnsatisfiedDependencyException для приложения Spring Boot 2.0.0.M2 с использованием Kotlin

Я пытаюсь переписать реализацию DataConfiguration.java приложения JHipster с Kotlin. Метод, с которым у меня возникают проблемы:

 @Bean public SpringLiquibase liquibase(@Qualifier("taskExecutor") TaskExecutor taskExecutor, DataSource dataSource, LiquibaseProperties liquibaseProperties) { // Use liquibase.integration.spring.SpringLiquibase if you don't want Liquibase to start asynchronously SpringLiquibase liquibase = new AsyncSpringLiquibase(taskExecutor, env); liquibase.setDataSource(dataSource); liquibase.setChangeLog("classpath:config/liquibase/master.xml"); liquibase.setContexts(liquibaseProperties.getContexts()); liquibase.setDefaultSchema(liquibaseProperties.getDefaultSchema()); liquibase.setDropFirst(liquibaseProperties.isDropFirst()); if (env.acceptsProfiles(JHipsterConstants.SPRING_PROFILE_NO_LIQUIBASE)) { liquibase.setShouldRun(false); } else { liquibase.setShouldRun(liquibaseProperties.isEnabled()); log.debug("Configuring Liquibase"); } return liquibase; } к @Bean public SpringLiquibase liquibase(@Qualifier("taskExecutor") TaskExecutor taskExecutor, DataSource dataSource, LiquibaseProperties liquibaseProperties) { // Use liquibase.integration.spring.SpringLiquibase if you don't want Liquibase to start asynchronously SpringLiquibase liquibase = new AsyncSpringLiquibase(taskExecutor, env); liquibase.setDataSource(dataSource); liquibase.setChangeLog("classpath:config/liquibase/master.xml"); liquibase.setContexts(liquibaseProperties.getContexts()); liquibase.setDefaultSchema(liquibaseProperties.getDefaultSchema()); liquibase.setDropFirst(liquibaseProperties.isDropFirst()); if (env.acceptsProfiles(JHipsterConstants.SPRING_PROFILE_NO_LIQUIBASE)) { liquibase.setShouldRun(false); } else { liquibase.setShouldRun(liquibaseProperties.isEnabled()); log.debug("Configuring Liquibase"); } return liquibase; } 

который я переписал как:

 @Bean fun liquibase(@Qualifier("taskExecutor") taskExecutor: TaskExecutor, dataSource: DataSource, liquibaseProperties: LiquibaseProperties): SpringLiquibase { // Use liquibase.integration.spring.SpringLiquibase if you don't want Liquibase to start asynchronously val liquibase = AsyncSpringLiquibase(taskExecutor, env) liquibase.dataSource = dataSource liquibase.changeLog = "classpath:config/liquibase/master.yml" liquibase.contexts = liquibaseProperties.contexts liquibase.defaultSchema = liquibaseProperties.defaultSchema liquibase.isDropFirst = liquibaseProperties.isDropFirst if (env.acceptsProfiles(SPRING_PROFILE_NO_LIQUIBASE)) { liquibase.setShouldRun(false) } else { liquibase.setShouldRun(liquibaseProperties.isEnabled) log.debug("Configuring Liquibase") } return liquibase } 

Когда я запускаю приложение Spring Boot, я получаю следующее исключение. Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'liquibase' defined in class path resource [com/sample/myapplication/config/DatabaseConfiguration.class]: Unsatisfied dependency expressed through method 'liquibase' parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.core.task.TaskExecutor' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {} Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'liquibase' defined in class path resource [com/sample/myapplication/config/DatabaseConfiguration.class]: Unsatisfied dependency expressed through method 'liquibase' parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.core.task.TaskExecutor' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {} Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'liquibase' defined in class path resource [com/sample/myapplication/config/DatabaseConfiguration.class]: Unsatisfied dependency expressed through method 'liquibase' parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.core.task.TaskExecutor' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {} .

Любые идеи, что мне может не хватать? Я использую Gradle для запуска приложения, и я основываю свою конфигурацию на немодифицированном приложении микросервиса JHipster.

Дайте мне знать, если есть какие-либо другие фрагменты кода, которые мне необходимо предоставить, чтобы мой вопрос имел смысл.