FIx spring boot issue
@@ -162,7 +162,7 @@ public class FhirAutoConfiguration {
@EnableConfigurationProperties(FhirProperties.class)
static class FhirJpaServerConfiguration {
- @Bean()
+ @Bean
@ConditionalOnMissingBean
public ScheduledExecutorFactoryBean scheduledExecutorService() {
ScheduledExecutorFactoryBean b = new ScheduledExecutorFactoryBean();
@@ -170,8 +170,7 @@ public class FhirAutoConfiguration {
return b;
}
- @Bean
- @ConditionalOnMissingBean
+ @Bean(name="hapiJpaTaskExecutor")
public AsyncTaskExecutor taskScheduler() {
ConcurrentTaskScheduler retVal = new ConcurrentTaskScheduler();
retVal.setConcurrentExecutor(scheduledExecutorService().getObject());
