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
the scheduler doesn't work. I have already checked the org.springframework.scheduling.config.ScheduledTaskRegistrar, the scheduler inits as well, but there isn't any task in all of the task variables such as fixedRateTasks, fixedDelayTasks and etc.
Is there any chance that we can use MethodValidationPostProcessor and the scheduler together?
The text was updated successfully, but these errors were encountered:
@Zheaoli the post-processor method should be static to prevent early initialization of the whole chain. You also should have a message in the log stating that some beans couldn't be post-processed. This is the reason why scheduling doesn't work with such arrangement. If moving it to static doesn't fix the problem, please share a small sample (zip or github repo) we can run ourselves and we can reconsider.
I use the Spring Boot v2.0.5.RELEASE which depends on Spring 5.0.9 Release
I got a problem when I need both
MethodValidationPostProcessor
andScheduled
here's the detail.
When I just use
Scheduled
like belowthe scheduler works well as what I want. But when I add a MethodValidationPostProcessor like below
the scheduler doesn't work. I have already checked the
org.springframework.scheduling.config.ScheduledTaskRegistrar
, the scheduler inits as well, but there isn't any task in all of the task variables such asfixedRateTasks
,fixedDelayTasks
and etc.Is there any chance that we can use MethodValidationPostProcessor and the scheduler together?
The text was updated successfully, but these errors were encountered: