| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.boot.CommandLineRunner; |
| | | import org.springframework.core.annotation.Order; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | |
| | | * |
| | | * @author Andy |
| | | */ |
| | | @Service |
| | | @Component(SystemRunner.BEAN_ID) |
| | | @Slf4j |
| | | @Order(value = 1) |
| | | public class SystemRunner implements CommandLineRunner { |
| | | |
| | | public static final String BEAN_ID = "init.serverRunner"; |
| | | |
| | | @Resource |
| | | private ISysCompanyService iSysCompanyService; |
| | |
| | | private InoutConfService inoutConfService; |
| | | @Resource |
| | | private SecCameraService secCameraService; |
| | | @Resource |
| | | private SnapConfService snapConfService; |
| | | |
| | | |
| | | @Override |
| | | public void run(String... args) throws Exception { |