zoukankan      html  css  js  c++  java
  • 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关联记录,可删除

  • 相关阅读:
    vue 微信底部导航开始就隐藏
    复制内容到剪切板 兼容大部分手机浏览器
    复制内容到剪切板
    页面滚动到顶部 也可实现或底部或中部
    js判断当前是移动端还是ios端
    判断是否是微信浏览器打开
    vue 获取元素高度
    内容超出隐藏
    uni-app 动态修改标题栏按钮名称
    Docker 常用应用
  • 原文地址:https://www.cnblogs.com/teacher11/p/15022848.html
Copyright © 2011-2022 走看看