问题描述
我正在使用JasperReporting引擎,并且我需要优化报告性能.目前,我的应用程序每次都从* .jrxml文件编译报告,因为我现在不更改报告,并且应用程序无法生成用户定义的报告,因此我应该编译一次并在以后使用.jasper文件.我对吗??我需要重新编译它们吗?预先感谢!
I'm using JasperReporting engine, and i need to optimize reporting performance. Currently my application compiles reports from *.jrxml files every time, as I'm not changing the reports now and app is not able to generate user-defined reports I should compile them once and use .jasper files in future..... AM I RIGHT?? And do I need to re-compile them?Thanks in advance!
推荐答案
让您的应用程序同时检查.jrxml文件和.jasper文件;如果缺少或晚于.jrxml,则重新编译,否则只需使用.jasper文件.
Let your application check both the .jrxml file and the .jasper file; if the later is missing or older than the .jrxml, recompile, otherwise just use the .jasper file.
这篇关于我什么时候需要重新编译Jasper报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!