FIx spring boot issue

This commit is contained in:
jamesagnew 2018-02-04 15:04:45 -05:00
parent 48330a0fa6
commit fb327c60cd
5 changed files with 12 additions and 13 deletions

View File

@ -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());