package org.fh; import com.alibaba.druid.support.http.StatViewServlet; import com.alibaba.druid.support.http.WebStatFilter; import org.springframework.boot.web.servlet.FilterRegistrationBean; import org.springframework.boot.web.servlet.ServletRegistrationBean; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; /** * 说明:druid数据库连接池的配置类(必须与启动类包目录同级) * 作者:FH Admin * from:fhadmin.cn */ @Configuration public class DruidConfiguration { @Bean public ServletRegistrationBean<StatViewServlet> statViewServlet() { // 创建servlet注册物体 ServletRegistrationBean<StatViewServlet> servletRegistrationBean = new ServletRegistrationBean<StatViewServlet>(new StatViewServlet(), "/druid/*"); // 设定ip白名单 //servletRegistrationBean.addInitParameter("allow", "127.0.0.1"); // 设定ip黑名单,如果allow与deny共同存在时,deny优先于allow //servletRegistrationBean.addInitParameter("deny", "192.168.0.1"); // 设定控制台管理用户 //servletRegistrationBean.addInitParameter("loginUsername", "druid"); //servletRegistrationBean.addInitParameter("loginPassword", "fhadmin"); // 是否可以重置资料 servletRegistrationBean.addInitParameter("resetEnable", "false"); return servletRegistrationBean; } @Bean public FilterRegistrationBean<WebStatFilter> statFilter() { // 创建过滤器 FilterRegistrationBean<WebStatFilter> filterRegistrationBean = new FilterRegistrationBean<WebStatFilter>(new WebStatFilter()); // 设定过滤器过滤路径 filterRegistrationBean.addUrlPatterns("/*"); // 忽略过滤的形式 filterRegistrationBean.addInitParameter("exclusions", "*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*"); return filterRegistrationBean; } }
------------------------------------------------------------------自定义表单
28. 定义模版:拖拽左侧表单元素到右侧区域,编辑表单元素,保存表单模版
29. 表单模版:编辑维护表单模版,复制表单模版,修改模版型别,预览表单模版
30. 我的表单:选择表单模版,编辑表单规则,是否上传图片、附件、开启富文本、挂靠流程开关等
31. 表单资料:从我的表单进去可增删改查表单资料,修改表单规则
32. 挂靠记录:记录表单资料和流程实体ID关联记录,可洗掉
0 评论