现已将报表和新闻的配置全部整合到一个bean中,网店在部署时报表只需要配置applicationContext.xml的ApplicationConfig bean。配置内容如下:
<!-- 前台的URL地址,供新闻预览使用 -->
<property name="basePath">
<value>http://172.31.88.134:8080/SalesOnLine</value>
</property>
<!-- JasperServer的URL地址 -->
<property name="reportServer">
<value>http://172.31.88.133:8080/jasperserver</value>
</property>
<!-- Service的路径一般不用修改 -->
<property name="repositoryService">
<value>/services/repository</value>
</property>
<property name="userAndRoleService">
<value>/services/UserAndRoleManagementService</value>
</property>
<!-- 报表保存路径 -->
<property name="reportHistoryPath">
<value>web/report</value>
</property>
<!-- 发运报表路径,报表在JasperServer部署后的路径 -->
<property name="shipOrderReport">
<value>/reports/salesonline/ship_order</value>
</property>
<!-- 发运报表在JasperServer上浏览的路径 -->
<property name="shipOrderReportPageUrl">
<value>/flow.html?_flowId=viewReportFlow&ndefined=&standAlone=true&ParentFolderUri=%2FReports%2FSalesOnLine&reportUnit=%2FReports%2FSalesOnLine%2Fship_order</value>
</property>
<property name="basePath">
<value>http://172.31.88.134:8080/SalesOnLine</value>
</property>
<!-- JasperServer的URL地址 -->
<property name="reportServer">
<value>http://172.31.88.133:8080/jasperserver</value>
</property>
<!-- Service的路径一般不用修改 -->
<property name="repositoryService">
<value>/services/repository</value>
</property>
<property name="userAndRoleService">
<value>/services/UserAndRoleManagementService</value>
</property>
<!-- 报表保存路径 -->
<property name="reportHistoryPath">
<value>web/report</value>
</property>
<!-- 发运报表路径,报表在JasperServer部署后的路径 -->
<property name="shipOrderReport">
<value>/reports/salesonline/ship_order</value>
</property>
<!-- 发运报表在JasperServer上浏览的路径 -->
<property name="shipOrderReportPageUrl">
<value>/flow.html?_flowId=viewReportFlow&ndefined=&standAlone=true&ParentFolderUri=%2FReports%2FSalesOnLine&reportUnit=%2FReports%2FSalesOnLine%2Fship_order</value>
</property>