You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
燕鹏 25155b8ac8 fix:json 格式时间不兼容。改用fastjson 3 years ago
docs Add files via upload 7 years ago
ureport2-console fix:json 格式时间不兼容。改用fastjson 3 years ago
ureport2-core fix:json 格式时间不兼容。改用fastjson 3 years ago
ureport2-font 版本同步为2.3.1 3 years ago
ureport2-js ureport - 增加自定义样式 3 years ago
ureport2-parent maven私服 & 找不到文件跳转到默认页面 & 打开文件通知vue组件 3 years ago
.gitignore 添加上传脚本 4 years ago Update 6 years ago Update 6 years ago
LICENSE.txt 内容变更 7 years ago 变更 5 years ago 完善内容 7 years ago


UReport2 is a high-performance pure Java report engine based on Spring architecture, where complex Chinese-style statements and reports can be prepared by iteraing over cells.

UReport2 provides the brand new web-based report designer that runs in mainstream browsers including Chrome, Firefox and Edge etc. (other than IE). You can complete the design and preparation of complex statements and reports with UReport2 by simply opening the browser.

UReport2 is the first Chinese-style report engine based on Apache-2.0 License.


Teaching video,password:98hj

Installation and Configuration

UReport2 is a pure Java report engine, so it supports all current popular types of J2EE projects. Here we will mainly introduce how Maven-based J2EE projects incorporate UReport2.

Maven-based UReport2 project

Firstly, we need to create a standard Maven project (create a project with Eclipse or other tools, while no more details are introduced here), then open the file pom.xml of Maven, and add the dependence information of UReport2, as shown below:


Within the above dependence information, [version] indicates the specific version No. of the ureport2-console package. We can search the keyword “ureport2-c onsole” at to check the specific version No. of the package. The latest source code can be downloaded from

It shall be noted that only the latest release version can be found at If you need the latest snapshot, you can search at Pursuant to regulations on sonatype, only the official version can be published on, i.e. the central repository of mave, and the snapshot version only exists in If we want to apply the latest snapshot at, we need to add repository information in pom.xml, to tell Maven to download the package of snapshot version there. The repository information is listed below:


Then, we need to configure the servlet that will be used by UReport2. Open the web.xml file in the project and add the following servlet configuration:


In the servlet configuratin, the url-pattern shall keep the fixed value of “/ureport/*” from any change, otherwise the system will fail.

As UReport2 is built based on the framework of spring, the last step of configuration shall be loading the spring configuration file of UReport2 in the project. Several ways are available to load the file, including opening web.xml, adding the listener provided by spring and directly loading the spring configuration file provided by UReport2, as shown below:


If spring is not used in your project, you can apply the above configuration and directly load the spring configuration file provided by UReport2. If spring is used in your project or in other modules of the project, you can import the spring configuration file provided by UReport2 to the existing spring configuration file. The configuration is shown below:

<import  resource="classpath:ureport-console-context.xml"  />

By now, we have added UReport2 in a standard Maven project. Run the project, and you can see the interface of UReport2 report designer by visiting URL:http://localhost:8080/[contextPath]/ureport/designer in a browser.Links: