提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.bpm.framework.web.config; |
H |
2 |
|
|
3 |
import com.iailab.framework.common.enums.WebFilterOrderEnum; |
|
4 |
import com.iailab.module.bpm.framework.web.core.FlowableWebFilter; |
|
5 |
import org.springframework.boot.web.servlet.FilterRegistrationBean; |
|
6 |
import org.springframework.context.annotation.Bean; |
|
7 |
import org.springframework.context.annotation.Configuration; |
|
8 |
|
|
9 |
/** |
|
10 |
* bpm 模块的 web 组件的 Configuration |
|
11 |
* |
|
12 |
* @author iailab |
|
13 |
*/ |
|
14 |
@Configuration(proxyBeanMethods = false) |
|
15 |
public class BpmWebConfiguration { |
|
16 |
|
|
17 |
/** |
|
18 |
* 配置 Flowable Web 过滤器 |
|
19 |
*/ |
|
20 |
@Bean |
|
21 |
public FilterRegistrationBean<FlowableWebFilter> flowableWebFilter() { |
|
22 |
FilterRegistrationBean<FlowableWebFilter> registrationBean = new FilterRegistrationBean<>(); |
|
23 |
registrationBean.setFilter(new FlowableWebFilter()); |
|
24 |
registrationBean.setOrder(WebFilterOrderEnum.FLOWABLE_FILTER); |
|
25 |
return registrationBean; |
|
26 |
} |
|
27 |
|
|
28 |
} |