xyc
7 小时以前 fbacc121df810f01e5b6ed43e6431dea6df270fd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.trafficaudit.holiday.service;
 
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
 
import javax.annotation.Resource;
 
@Component
@Order(100)
public class HolidayReferenceDataInitializer implements ApplicationRunner {
 
    @Resource
    private HolidayWorkbookService workbookService;
 
    @Override
    public void run(ApplicationArguments args) {
        workbookService.seedReferenceDataIfNeeded();
    }
}