Ruoyi Vue 前后端分离版本添加 UReport 设计器

1,在pom文件添加jar包
<!--添加ureport设计器--><dependency><groupId>com.bstek.ureport</groupId><artifactId>ureport2-console</artifactId><version>2.2.9</version></dependency>
2,在启动程序*Application添加初始化bean
@Beanpublic ServletRegistrationBean ureportServlet(){ServletRegistrationBean bean = new ServletRegistrationBean(new UReportServlet());bean.addUrlMappings("/ureport/*");return bean;}
3,在SecurityConfig.java放行/ureport/**路径
4,这样就可以直接使用localhost:8080/ureport/designer浏览了
5,在vue项目里,在vue.config.js添加下列代码
6.在views目录添加ureport/designer的index.vue文件,目录形式如下:views/ureport/designer
7.在后台管理界面添加菜单,图片如下所示:

8.最后成功展示

版权声明: 本文为 InfoQ 作者【赵欣】的原创文章。
原文链接:【http://xie.infoq.cn/article/e34d4ee9438ee0b6046fc4d6c】。文章转载请联系作者。
 
 
 
  
  
  
  
  
  
  
  
    
评论