Git Product home page Git Product logo

fine-report's Introduction

fine-report

帆软报表9.0,基于spring boot。

安装依赖

由于帆软只给了jar包,我们需要通过maven安装到本地仓库。

Windows

对于Windows用户,运行install/installjars.bat

Unix

对于LinuxMac os用户,运行install/installjars.sh

配置

系统

端口

默认15020。配置文件src/main/resources/application.yml

日志

日志默认(异步)输出到logs目录下,配置文件src/main/resources/logback-spring.xml

默认日志级别INFO,文件格式finereport.yyyy-MM-dd.log

帆软

数据集

一般需要配置服务器数据集,修改配置文件env/WEB-INF/resources/datasource.xml

数据库

如果需要使用保存常用参数等功能,则需要使用数据库。(默认不启用)

修改配置文件env/WEB-INF/resources/config.xml

日志

日志默认输出到logs目录下,配置文件env/WEB-INF/resources/log4j.properties。(默认日志级别INFO

CPT模板

需要将cpt上传到env/WEB-INF/reportlets下。

FRDemo.db

可以通过env/FRDemo.db这个sqlite数据库,进行本地测试。

部署

打包

$ mvn clean
$ mvn package

运行

注意:需要将env目录与打包好的jar放在同一个目录下,程序启动后会将env目录作为docBase

$ nohup java -jar hdsp-finereport.{version}.jar > startup.log &

访问

  • 浏览器访问:http://127.0.0.1:15020
  • 帆软地址:http://127.0.0.1:15020/ReportServer
  • 访问帆软模板:http://127.0.0.1:15020/ReportServer?reportlet=GettingStarted.cpt,其中GettingStarted.cpt需要在env/WEB-INF/reportlets下存在。

GettingStarted

问题

为什么要重置src/main/webapp目录到env

这是因为创建src/main/webapp目录后,如果将帆软资源复制进去后,那么在打包的时候,则需要打成war包(通过tomcat部署)。

而重置webapp目录到env后,可以打包成jar包,帆软此时通过env目录来进行配置读取、模版解析、备份等。

也就是说,env目录相当于tomcatdocBase了。

fine-report's People

Contributors

xuanbo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.