jasperreports整合空白
1.添加bean<bean id="viewResolver" class="org.springframework.web.servlet.view.ResourceBundleViewResolver">
<property name="basename" value="views"/>
</bean>
2.报表参数文件
views.properties
helloReport.(class)=org.springframework.web.servlet.view.jasperreports.JasperReportsPdfView
helloReport.url=/WEB-INF/views/jasperreports/HelloWorld1.jrxml
helloReport.reportDataKey=reportDataKey
3.在controller中调用
@RequestMapping(value="report")
public String report(Map<String, Object> model){
return "helloReport";
}
4.调用/reportController.do?report,没有出错提示,浏览器空白.
有谁知道在jeecg中如何整合jasperreports,帮帮忙了。
上传了两个附件,以前jeecg集成开源报表的问题,供参考
页:
[1]