activiti配置文件的配置如下:
<!-- spring负责创建流程引擎的配置文件 -->
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"><!-- 数据源 -->
<property name="dataSource" ref="multipleDataSource" />
<!-- 配置事务管理器,统一事务 -->
<property name="transactionManager" ref="txManager" />
<!-- 设置建表策略,如果没有表,自动创建表 -->
<property name="databaseSchema" value="act"/>
<property name="databaseSchemaUpdate" value="true" />
</bean>
根据activiti官方文档的配置要求来看,没有什么问题,但是启动后报错
### The error may exist in org/activiti/db/mapping/entity/Property.xml
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### SQL: select VALUE_ from ACT_GE_PROPERTY where NAME_ = 'schema.version'
### Cause: java.sql.SQLSyntaxErrorException: ORA-00942: 表或视图不存在
将配置文件改为如下的配置,问题就解决啦
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
<!-- 数据源 -->
<property name="dataSource" ref="multipleDataSource" />
<!-- 配置事务管理器,统一事务 -->
<property name="transactionManager" ref="txManager" />
<!-- 设置建表策略,如果没有表,自动创建表 修改这个地方为大写 -->
<property name="databaseSchema" value="ACT"/>
<property name="databaseSchemaUpdate" value="true" />
</bean>