xyc
2 天以前 0d3f36094d5fbeb91026fd3a1649ce0759ea6212
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();
    }
}