I have a web application that uses Jasper Reports. I want to tweak some properties without editing the source (I've lost it). In the compiled web application in which folder should jasperreports.properties be located in order to get loaded?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
jasper.properties is looked up by jasper reports in the classpath, so it can be directly in the WEB-INF/classes folder, or in the root folder of any of the jars in WEB-INF/lib.
回答2:
If you put it in WEB-INF/classes it can be loaded from the CLASSPATH.