报表JAVA增强插件加载失败

飘过的雨

在com.jeelowcode.module.biz.enhance下定义报表JAVA增强:

@Component("inventoryStatsReportEnhance")

public class InventoryStatsReportEnhance implements ReportAfterAdvicePlugin {

   @Override

   public void execute(EnhanceReportContext enhanceContext) {

       List<Map<String, Object>> records = enhanceContext.getResult().getRecords();

       if (Func.isEmpty(records)) {

           return;

       }

   }

}

启动时报错:Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jeeLowCodeReportEnhance': Invocation of init method failed

Caused by: com.jeelowcode.tool.framework.exception.JeeLowCodeException: 增强[InventoryStatsReportEnhance]插件加载失败

是什么原因导致错误?要怎么解决呢?


回答2

飘过的雨

@Component("inventoryStatsReportEnhance"),首字母已经是小写。

写回答

扫码关注

微信公众号二维码