tkmapper与activiti问题

编程

/**

* 使用tkmapper后导致Activiti使用JPA模式,这里指定成jdbc模式

* 另外需要在启动类中把JpaProcessEngineAutoConfiguration.class排除

*/

@Configuration

@AutoConfigureAfter(DataSourceAutoConfiguration.class)

public class ActivitiProcessEngineAutoConfiguration {

@Configuration

@EnableConfigurationProperties(ActivitiProperties.class)

public static class DataSourceProcessEngineConfiguration extends AbstractProcessEngineAutoConfiguration {

@Bean

@ConditionalOnMissingBean

public PlatformTransactionManager transactionManager(DataSource dataSource) {

return new DataSourceTransactionManager(dataSource);

}

@Bean

@ConditionalOnMissingBean

public SpringProcessEngineConfiguration springProcessEngineConfiguration(

DataSource dataSource,

PlatformTransactionManager transactionManager,

SpringAsyncExecutor springAsyncExecutor) throws IOException {

return this.baseSpringProcessEngineConfiguration(dataSource, transactionManager, springAsyncExecutor);

}

}

}

以上是 tkmapper与activiti问题 的全部内容, 来源链接: utcz.com/z/514522.html

回到顶部