
1 changed files with 23 additions and 0 deletions
@ -0,0 +1,23 @@ |
|||
package com.yxt.anrui.flowable.config; |
|||
|
|||
import org.flowable.common.engine.impl.persistence.StrongUuidGenerator; |
|||
import org.flowable.spring.SpringProcessEngineConfiguration; |
|||
import org.flowable.spring.boot.ProcessEngineConfigurationConfigurer; |
|||
import org.springframework.context.annotation.Bean; |
|||
import org.springframework.context.annotation.Configuration; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: dimengzhe |
|||
* @date: 2025/4/21 |
|||
**/ |
|||
@Configuration |
|||
public class FlowableUuidConfig { |
|||
|
|||
@Bean |
|||
public SpringProcessEngineConfiguration processEngineConfiguration() { |
|||
SpringProcessEngineConfiguration config = new SpringProcessEngineConfiguration(); |
|||
config.setIdGenerator(new StrongUuidGenerator()); // 设置自定义的 UUID 生成器
|
|||
return config; |
|||
} |
|||
} |
Loading…
Reference in new issue