Java   发布时间:2022-04-02  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了flowable 6.6.0 去掉自带的登录权限大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

1. 找到项目maven目录

2.在自己项目里面建相同包名,类名

package org.flowable.ui.modeler.conf; 重写ModelerSecurityConfiguration

package org.flowable.ui.modeler.conf;

import org.flowable.ui.common.security.SecurityConstants;
import org.springframework.context.Annotation.Configuration;
import org.springframework.core.Annotation.order;
import org.springframework.security.config.Annotation.web.builders.httpSecurity;
import org.springframework.security.config.Annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.Annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.springframework.security.web.authentication.SavedrequestAwareAuthenticationsuccessHandler;

/**
 * 说明:重构ModelerSecurity
 * from:www.fhadmin.cn
 */
@Configuration(proxyBeanMethods = false)
@EnableWebSecurity
public class ModelerSecurityConfiguration {

    @Configuration
    @Order(SecurityConstants.MODELER_API_SECURITY_ORDER)
    public static class ModelerApiWebSecurityConfigurationAdapter extends WebSecurityConfigurerAdapter {
        
        @Override
        protected void configure(httpSecurity http) throws Exception {
            
            SavedrequestAwareAuthenticationsuccessHandler successHandler = new SavedrequestAwareAuthenticationsuccessHandler();
            successHandler.setTargetUrlParameter("redirectTo");

            http.headers().frameOptions().disable();
            
            http.csrf().disable().authorizerequests().antMatchers("/**/**").permitAll().anyrequest().authenticated().and().httpBasic();
        }

    }

}

 

 --------------------www.fhadmin.cn----------------------------------------------自定义表单
28. 定义模版:拖拽左侧表单元素到右侧区域,编辑表单元素,保存表单模版
29. 表单模版:编辑维护表单模版,复制表单模版,修改模版类型,预览表单模版
30. 我的表单:选择表单模版,编辑表单规则,是否上传图片、附件、开启富文本、挂靠流程开关等
31. 表单数据:从我的表单进去可增删改查表单数据,修改表单规则
32. 挂靠记录:记录表单数据和流程实例ID关联记录,可删除

大佬总结

以上是大佬教程为你收集整理的flowable 6.6.0 去掉自带的登录权限全部内容,希望文章能够帮你解决flowable 6.6.0 去掉自带的登录权限所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: