新建数据库
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