You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scheduledJobLauncher': Initialization of bean failed; nested exception is java.lang.IllegalStateException: Encountered invalid @Scheduled method 'doTask': Cron expression must consist of 6 fields (found 1 in "30000")
@Scheduled
can take one of cron(), fixedDelay(), or fixedRate() , but the default does not follow the cron syntaxNote that the cron syntax in spring (with precision up to seconds) is different from normal ones.
Spring: http://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/scheduling/annotation/Scheduled.html#fixedDelay--
Normal: http://www.nncron.ru/help/EN/working/cron-format.htm
The text was updated successfully, but these errors were encountered: