zhitong.yu
7 天以前 7fc9c42987a13c1d8d2159591a5803e70518827f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.hxzk.gps.util;
 
import com.hxzk.gps.controller.System.SystemLogUtil;
import com.hxzk.gps.service.System.TbSystemOperationLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Component;
 
@Component
public class Initializer implements ApplicationListener<ContextRefreshedEvent> {
    @Autowired
    private TbSystemOperationLogService systemOperationLogService;
    @Override
    public void onApplicationEvent(ContextRefreshedEvent event) {
        SystemLogUtil.setSystemOperationLogService(systemOperationLogService);
    }
}