报错信息如下:
Mapped Statements collection does not contain value for org.flowable.ui.modeler.domain.Model.selectModelByParameters
原因为未配置扫描flowable的mapping文件
解决方法:
1、spring-dao.xml增加以下红色部分:
<bean name="hzCommons" id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
<property name="dataSource" ref="mysqlDB"/>
<property name="mapperLocations">
<array>
<value>classpath*:/mappings/**/*.xml</value>
<value>classpath:/META-INF/modeler-mybatis-mappings/*.xml</value>
</array>
</property>
<property name="configLocation" value="classpath:/config/mybatis-config.xml"/>
</bean>
2、mybatis-config.xml增加如下部分:
<properties resource="flowable.properties">
<property name="blobType" value="BLOB"></property>
<property name="boolValue" value="TRUE"></property>
<property name="prefix" value=""></property>
</properties>
3、flowable.properties增加以下部分:
blobType=BLOB
boolValue=TRUE
prefix=