java 代碼
import org
import org
public class MessageEventListener implements ApplicationListener {
@Override
public void onApplicationEvent(ApplicationEvent event) {
// TODO Auto
if(event instanceof MessageEvent){
MessageEvent msEvent = (MessageEvent)event;
System
}
}
}
在運行期
[
From:http://tw.wingwit.com/Article/program/Java/ky/201311/29122.html