专题导航
一、Flowable介绍及部署
二、SpringBoot集成Flowable UI
三、Flowable UI跳过权限验证
四、Flowable UI整合前后分离
由项目的请求信息中可以看出,项目时通过json/text的形式来传递数据的,故可以尝试将前端资源分离出来
一、将idm、modeler的war包中的/WEB-INF/classes/static内容分别复制到idm、modeler下
二、将app-cfg.js中的contextRoot修改为/flowable_+对应的模块名,与静态资源路径区分开
文件位置:scripts/app-cfg.js
modeler同理
三、nginx配置
server {
listen 8081;
server_name flowable_ui;
location / {
root E:\flowable-ui;
index index.html index.htm;
}
location /flowable_idm {
proxy_pass http://localhost:8080/expense;
proxy_cookie_path /flowable /flowable_idm;
}
location /flowable_modeler {
proxy_pass http://localhost:8080/expense;
proxy_cookie_path /flowable /flowable_modeler;
}
}
查看结果:
转发并访问成功,并且之前配置的跳过权限验证依然生效