FIx spring boot issue
This commit is contained in:
parent
48330a0fa6
commit
fb327c60cd
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue