---添加事件监听测试
This commit is contained in:
@ -0,0 +1,21 @@
|
||||
package com.xjrsoft.common;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import com.pictc.listener.ListenerParameterContext;
|
||||
import com.pictc.listener.ListenerR;
|
||||
import com.pictc.listener.PEventListener;
|
||||
|
||||
@Component
|
||||
public class ListenerDemo {
|
||||
|
||||
@PEventListener("#source == 'lng_upload_file'")
|
||||
public ListenerR<Long> add(ListenerParameterContext context){
|
||||
Map<String,Object> data = (Map<String, Object>) context.getData();
|
||||
|
||||
return ListenerR.success(1L);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user