切换mysql为达梦数据库-代码审查
1.bpm-boot模块
This commit is contained in:
@@ -29,7 +29,6 @@ public class BpmFlowableConfiguration {
|
||||
|
||||
/**
|
||||
* 参考 {@link org.flowable.spring.boot.FlowableJobConfiguration} 类,创建对应的 AsyncListenableTaskExecutor Bean
|
||||
*
|
||||
* 如果不创建,会导致项目启动时,Flowable 报错的问题
|
||||
*/
|
||||
@Bean(name = "applicationTaskExecutor")
|
||||
@@ -49,7 +48,6 @@ public class BpmFlowableConfiguration {
|
||||
|
||||
/**
|
||||
* BPM 模块的 ProcessEngineConfigurationConfigurer 实现类:
|
||||
*
|
||||
* 1. 设置各种监听器
|
||||
* 2. 设置自定义的 ActivityBehaviorFactory 实现
|
||||
*/
|
||||
|
||||
@@ -29,10 +29,10 @@ import java.util.Set;
|
||||
public class BpmTaskEventListener extends AbstractFlowableEngineEventListener {
|
||||
|
||||
@Resource
|
||||
@Lazy // 解决循环依赖
|
||||
@Lazy
|
||||
private IBpmTaskService taskService;
|
||||
@Resource
|
||||
@Lazy // 解决循环依赖
|
||||
@Lazy
|
||||
private IBpmActivityService activityService;
|
||||
|
||||
public static final Set<FlowableEngineEventType> TASK_EVENTS = ImmutableSet.<FlowableEngineEventType>builder()
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
package com.njcn.bpm.config;
|
||||
|
||||
import com.njcn.bpm.enums.WebFilterOrderEnum;
|
||||
import org.springframework.boot.web.servlet.FilterRegistrationBean;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* bpm 模块的 web 组件的 Configuration
|
||||
*
|
||||
* @author hongawen
|
||||
*/
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
public class BpmWebConfiguration {
|
||||
|
||||
// /**
|
||||
// * bpm 模块的 API 分组
|
||||
// */
|
||||
// @Bean
|
||||
// public GroupedOpenApi bpmGroupedOpenApi() {
|
||||
// return YudaoSwaggerAutoConfiguration.buildGroupedOpenApi("bpm");
|
||||
// }
|
||||
|
||||
/**
|
||||
* 配置 Flowable Web 过滤器
|
||||
*/
|
||||
/* @Bean
|
||||
public FilterRegistrationBean<FlowableWebFilter> flowableWebFilter() {
|
||||
FilterRegistrationBean<FlowableWebFilter> registrationBean = new FilterRegistrationBean<>();
|
||||
registrationBean.setFilter(new FlowableWebFilter());
|
||||
registrationBean.setOrder(WebFilterOrderEnum.FLOWABLE_FILTER);
|
||||
return registrationBean;
|
||||
}*/
|
||||
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
//package com.njcn.bpm.config;
|
||||
//
|
||||
//import cn.hutool.core.util.StrUtil;
|
||||
//import com.njcn.bpm.utils.FlowableUtils;
|
||||
//import com.njcn.web.utils.RequestUtil;
|
||||
//import org.springframework.web.filter.OncePerRequestFilter;
|
||||
//
|
||||
//import javax.servlet.FilterChain;
|
||||
//import javax.servlet.ServletException;
|
||||
//import javax.servlet.http.HttpServletRequest;
|
||||
//import javax.servlet.http.HttpServletResponse;
|
||||
//import java.io.IOException;
|
||||
//
|
||||
///**
|
||||
// * Flowable Web 过滤器,将 userId 设置到 {@link org.flowable.common.engine.impl.identity.Authentication} 中
|
||||
// *
|
||||
// * @author jason
|
||||
// */
|
||||
//public class FlowableWebFilter extends OncePerRequestFilter {
|
||||
//
|
||||
// @Override
|
||||
// protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain)
|
||||
// throws ServletException, IOException {
|
||||
// try {
|
||||
// String userIndex = RequestUtil.getUserIndex();
|
||||
// // 设置工作流的用户
|
||||
// if (StrUtil.isNotBlank(userIndex)) {
|
||||
// FlowableUtils.setAuthenticatedUserId(userIndex);
|
||||
// }
|
||||
// // 过滤
|
||||
// chain.doFilter(request, response);
|
||||
// } finally {
|
||||
// // 清理
|
||||
// FlowableUtils.clearAuthenticatedUserId();
|
||||
// }
|
||||
// }
|
||||
//
|
||||
//}
|
||||
@@ -9,6 +9,9 @@ import org.springframework.context.annotation.Configuration;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
|
||||
/**
|
||||
* @author guosongrui
|
||||
*/
|
||||
@Configuration
|
||||
public class JacksonConfig {
|
||||
public static final String DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
|
||||
|
||||
Reference in New Issue
Block a user