Controller
package com.example.demo; import java.util.Date; import java.text.SimpleDateFormat; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.Scheduled; @SpringBootApplication @EnableScheduling public class HelloController { private static final SimpleDateFormat fmt = new SimpleDateFormat("HH:mm:ss"); @Scheduled(fixedRate = 5000) public void reportTime() { System.out.println(fmt.format(new Date())); } public static void main(String[] args) { SpringApplication.run(HelloController.class, args); } }
==========================
CONDITION EVALUATION DELTA
==========================
Positive matches:
—————–
TaskSchedulingAutoConfiguration#taskScheduler matched:
– @ConditionalOnBean (names: org.springframework.context.annotation.internalScheduledAnnotationProcessor; SearchStrategy: all) found bean ‘org.springframework.context.annotation.internalScheduledAnnotationProcessor’; @ConditionalOnMissingBean (types: org.springframework.scheduling.annotation.SchedulingConfigurer,org.springframework.scheduling.TaskScheduler,java.util.concurrent.ScheduledExecutorService; SearchStrategy: all) did not find any beans (OnBeanCondition)
Negative matches:
—————–
None
Exclusions:
———–
None
Unconditional classes:
———————-
None
16:02:28
16:02:33
16:02:38
16:02:43
16:02:48
16:02:53
16:02:58
16:03:03
16:03:08
16:03:13
16:03:18
16:03:23
16:03:28
16:03:33
16:03:38
なんやこれは、すげえ