Spring 5 Reporting

邮差的信 提交于 2019-12-12 10:42:41

问题


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?


回答1:


https://jira.spring.io/browse/SPR-13294 From the ticket

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.

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.



来源:https://stackoverflow.com/questions/47271098/spring-5-reporting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!