package com.stylefeng.guns.modular.listener;
|
|
import com.stylefeng.guns.modular.listener.event.UploadTrajectoryEvent;
|
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.context.event.EventListener;
|
import org.springframework.scheduling.annotation.Async;
|
import org.springframework.stereotype.Component;
|
|
import java.io.IOException;
|
|
/**
|
* @author xiaochen
|
* @ClassName DeductPointsEventListener
|
* @Description 存储定位事件异步监听器
|
* @date 2024-01-15 10:44
|
*/
|
@Component
|
public class UploadTrajectoryEventListener {
|
@Value("${filePath}")
|
private String filePath;
|
/**
|
* 打开事件监听器的异步处理
|
* @param event
|
*/
|
@Async
|
@EventListener(UploadTrajectoryEvent.class)
|
public void PublishTopicVipInfoEventListener(UploadTrajectoryEvent event) throws IOException {
|
// 事件处理
|
String source = (String)event.getSource();
|
}
|
|
}
|