package com.iailab.module.bpm.framework.web.config; import com.iailab.framework.common.enums.WebFilterOrderEnum; import com.iailab.module.bpm.framework.web.core.FlowableWebFilter; import org.springframework.boot.web.servlet.FilterRegistrationBean; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; /** * bpm 模块的 web 组件的 Configuration * * @author iailab */ @Configuration(proxyBeanMethods = false) public class BpmWebConfiguration { /** * 配置 Flowable Web 过滤器 */ @Bean public FilterRegistrationBean flowableWebFilter() { FilterRegistrationBean registrationBean = new FilterRegistrationBean<>(); registrationBean.setFilter(new FlowableWebFilter()); registrationBean.setOrder(WebFilterOrderEnum.FLOWABLE_FILTER); return registrationBean; } }