项目中使用了泛型名Data ,@Data导致lombok失败
lombok 不兼容的类型: Data无法转换为Annotation
去掉后换成自己生成或者将Data改成T或其他名称
public class ExportEvent<Data> extends ApplicationEvent
{
/**
* Create a new ApplicationEvent.
*
* @param source the object on which the event initially occurred (never {@code null})
*/
public ExportEvent(Data source) {
super(source);
this.data = source;
}
private Data data;
public Data getData(){
return data;
}
}