最佳答案
https://jira.spring.io/browse/SPR-13294
从机票
从机票
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 Report生成代码可以由您自己的端点调用.