@PostConstruct和@Component同时使用,springboot的bean容器类会实例化2次破坏了springboot的单例模式。 将@Component注解修改为@Service,日志中start()只打印一次了,解决之。