地质所 沉降监测网建设项目
zmk
2024-05-15 9e3afc6d0fa514f986d3fea40fa23124e6fb5070
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.javaweb.applicationEvent.event;
 
import com.alibaba.fastjson.JSON;
import com.javaweb.applicationEvent.ApplicationEvent;
import com.javaweb.applicationEvent.ApplicationEventDefined;
import com.javaweb.applicationEvent.IApplicationEvent;
import org.springframework.stereotype.Component;
 
/**
 * 用户登录后触发
 */
@ApplicationEvent({ApplicationEventDefined.ON_AFTER_LOGIN})
@Component
public class AfterLoginEventTrigger implements IApplicationEvent {
    @Override
    public void onTrigger(Object source, Object params) {
        System.out.println("用户登陆后:系统任务被触发:"+source.toString()+"\t\t"+ JSON.toJSONString(params));
    }
}