Вот конфигурация планирования < /p>
@Configuration
@EnableScheduling
public class RWInventorySchedule {
protected org.slf4j.Logger log = LoggerFactory.getLogger(RWInventorySchedule.class);
@PersistenceContext
private EntityManager entityManager;
@Bean
public RWInventoryProcessor constructInventoryProcessor() {
log.debug("RWInventorySchedule constructs InventoryProcessor, entityManager : {} " , entityManager);
return new RWInventoryProcessor(entityManager);
}
}
< /code>
Процессор инвентаризации является следующим < /p>
public class RWInventoryProcessor {
...
@Scheduled(fixedRate = 5000,initialDelay = 3000)
@Transactional
public void runProcess() {
...
}
}
< /code>
во время выполнения, получение следующих ошибок в журнале отладки < /p>
отладка
/> org.springframework.scheduling.annotation.scheduledanotationbeanpostprocessor
- не удалось найти по умолчанию Taskscheduler Bean org.springframework.beans.factory.nosuchbeandefinitionExexceptexception: no
Qualifing beans org.springframeRishoreRishAr
Доступен
...
Debug org.springframework.scheduling.annotation.scheduledantationbeanpostprocessor
- не смог найти по умолчанию cheduledexecutorservice bean org.springframework.beans.factory.nosuchbaindefinitionexception: no
квалификационный бон типа
'java.util.concurrent.scheduledexecutorservice' of affement < /p>
< /blockquote> />
Я упускаю что -нибудь < /p>
Подробнее здесь: https://stackoverflow.com/questions/427 ... kscheduler
Нет квалификационного боба типа PreduledExecutorservice | Taskscheduler ⇐ JAVA
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Обновите значение квалификационного столбца в квалификационной строке, не зная имя столбца
Anonymous » » в форуме Php - 0 Ответы
- 8 Просмотры
-
Последнее сообщение Anonymous
-