Spring @Scheduled task runs twice
问题 I am creating an @Scheduled task to run every 5 seconds. As has been a problem in other questions, my task is running twice! I have looked at other questions, and read the applicable documentation here, but I have not been able to figure out the problem. I know that two seperate instances of my @Scheduled class are getting instantiated when I start my tomcat server. I have also figured out when they are instantiated in reference to my log file. One associated with this log line : INFO: