package com.elab.spring.utils;

import com.alibaba.fastjson.JSON;
import com.elab.spring.utils.event.EventA;
import com.elab.spring.utils.event.EventB;
import org.springframework.context.ApplicationListener;

public class Source3ApplicationListener implements ApplicationListener<EventB> {

    @Override
    public void onApplicationEvent(EventB event) {
        System.out.println("Source3ApplicationListener 消费到: " + JSON.toJSONString(event.getSource()));
    }
}
