Skip to content

carllhw/spring-boot-ureport2-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot UReport2 Demo

初始化数据库

新建数据库

CREATE USER 'choerodon'@'%' IDENTIFIED BY "123456";

CREATE DATABASE report_test DEFAULT CHARACTER SET utf8;
GRANT ALL PRIVILEGES ON report_test.* TO choerodon@'%';
FLUSH PRIVILEGES;

初始化数据库

sh init-local-database.sh

修改配置并拷贝示例报表模板文件

修改配置文件src/main/resources/ureport-config.properties里的ureport.fileStoreDir属性为本地目录,例如/Users/carllhw/ureportfiles

拷贝demo.ureport.xml文件到上述目录即可

启动应用

mvn clean spring-boot:run

预览

浏览器访问地址http://localhost:8080/ureport/designer?_u=file:demo.ureport.xml

点击预览

即可看到预览结果,并可以以多种方式输出报表

About

UReport2 Spring Boot Demo

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published