package com.zjty.autotest.config;

import com.zjty.autotest.mq.PushBlockQueue;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class ProjectInitRun implements CommandLineRunner {
    @Autowired
    private PushBlockQueue pushBlockQueue;
    @Override
    public void run(String... args) throws Exception {
        pushBlockQueue.start();
    }
}
