春季 5 报告 [英] Spring 5 Reporting

查看:46
本文介绍了春季 5 报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Spring Framework 5 的变更日志中,它指出他们删除了 JasperReports 的兼容性.我可以使用什么报告工具,与 Spring FW 5 兼容?

On the changelog for Spring Framework 5, it states that they removed the compatibility for JasperReports. What reporting tool can I use, that will be compatible with Spring FW 5?

推荐答案

https://jira.spring.io/browse/SPR-13294从票

我们更推荐在 Spring MVC 中原生使用 JasperReports API处理程序方法,从专门设计的 RESTful 生成报告端点.我们正在放弃我们现在半无用的 JasperReports 视图从 Spring Framework 5.0 开始的类层次结构.请注意,我们现有的对已弃用的 JRExporter API 的支持仍然存在于Spring Framework 4.3.x 系列直到 2019 年,特别是对于现有的应用程序.但是,即使使用 4.3,JasperReports 的本机使用API 值得考虑.

we rather recommend native use of the JasperReports API in Spring MVC handler methods, generating reports from specifically designed RESTful endpoints. We are dropping our now semi-useless JasperReports view class hierarchy as of Spring Framework 5.0. Note that our existing support against the deprecated JRExporter API remains around in the Spring Framework 4.3.x line until 2019, in particular for existing applications. However, even with 4.3, native use of the JasperReports API is worth considering.

您应该使用 JasperReport 但避免使用 JRExporter.因此,只需手动添加所有 JasperReport 库并在需要时创建报告.您自己的端点可以调用 Jasper 报告生成代码.

You should use JasperReport but avoid using JRExporter. So just manually add all the JasperReport libraries and create reports when you need them. The Jasper Report generation code could be called by your own endpoints.

这篇关于春季 5 报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆