快捷搜索:  汽车  科技

构建dem四种方法:若依分离版本集成jmreport

构建dem四种方法:若依分离版本集成jmreport大约猜测是因为jar冲突了,所以找到若依中引用的jar包,下面maven包版本 at org.jeecg.modules.jmreport.desreport.a.a.a(DesignReportController.java:340) ~[jimureport-spring-boot-starter-1.4.0-beta.jar:2.0.0] at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.ja

首先安装jmreport官网的手册进行集成配置。在最后进行报表预览的时候会遇到报表是空页面的错误,查看后台发现是json包冲突:报错信息如下ava.lang.NoSuchMethodError: com.alibaba.fastjson.JSONObject.clone()Lcom/alibaba/fastjson/JSONObject;

at org.jeecg.modules.jmreport.desreport.service.a.e.getDataById(JimuReportServiceImpl.java:217) ~[jimureport-spring-boot-starter-1.4.0-beta.jar:2.0.0]

at org.jeecg.modules.jmreport.desreport.service.a.e.show(JimuReportServiceImpl.java:3466) ~[jimureport-spring-boot-starter-1.4.0-beta.jar:2.0.0]

at org.jeecg.modules.jmreport.desreport.service.a.e$$FastClassBySpringCGLIB$$4daca651.invoke(<generated>) ~[jimureport-spring-boot-starter-1.4.0-beta.jar:2.0.0]

at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.1.8.RELEASE.jar:5.1.8.RELEASE]

at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:684) ~[spring-aop-5.1.8.RELEASE.jar:5.1.8.RELEASE]

at org.jeecg.modules.jmreport.desreport.service.a.e$$EnhancerBySpringCGLIB$$7ec2b3cd.show(<generated>) ~[jimureport-spring-boot-starter-1.4.0-beta.jar:2.0.0]

at org.jeecg.modules.jmreport.desreport.a.a.a(DesignReportController.java:340) ~[jimureport-spring-boot-starter-1.4.0-beta.jar:2.0.0]

大约猜测是因为jar冲突了,所以找到若依中引用的jar包,下面maven包版本

构建dem四种方法:若依分离版本集成jmreport(1)

重启后台,发现可以正常显示了!

构建dem四种方法:若依分离版本集成jmreport(2)

猜您喜欢: