FineReport7.0 + Tomcat + PostgreSQL集成

来源:互联网 发布:杜兰特去勇士知乎 编辑:程序博客网 时间:2024/06/07 07:40

 拷贝D:/PostgreSQL/pgJDBC 目录中的 postgresql-8.4-702.jdbc3.jar  和 postgresql-8.4-702.jdbc4.jar 到E:/FineReport/WebReport/WEB-INF/lib

  重新打开设计器,这时就能正常连接PosqgreSQL了。连接URL的语法是: jdbc:postgresql://host:port/databasename

连接情况如图所示


Tomcat 7.0.14

  装完后,建立E:/Tomcat7/conf/Catalina/localhost/FR.xml,内容如下:

docBase后为你FineReport安装路径下的WebReport的路径。

<Context path="/FR" docBase="E:/FineReport/WebReport" debug="0"> </Context>


设置成功后,重启tomcat,在浏览器里输入地址http://localhost:8080/FR/ReportServer?reportlet=GettingStarted.cpt(这个为内容的一个demo)。


0 0
原创粉丝点击