org.jbpm.configuration.ConfigurationException: name 'default.jbpm.context'

mac2022-06-30  62

我的hibernate是3.2.6的

这个问题纠结我半天最后的解决方案就是,添加下面的红颜色的代码.就好了

<!-- 配置sessionFactory -->     <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">         <property name="dataSource" ref="dataSource" />         <property name="configLocation">             <value>classpath:hibernate.cfg.xml</value>         </property>     <property name="mappingLocations">        <value>classpath*:/org/jbpm/**/*.hbm.xml</value>    </property>    <property name="hibernateProperties">        <props>            <prop key="hibernate.dialect">                org.hibernate.dialect.Oracle9Dialect     </prop>            <prop key="jdbc.fetch_size">50</prop>            <prop key="jdbc.batch_size">30</prop>            <prop key="hibernate.show_sql">true</prop>            <prop key="hibernate.use_outer_join">true</prop>            <prop key="hibernate.cglib.use_reflection_optimizer">                true          </prop>        </props>    </property>     </bean>

如果大家有更好的办法,请留言谢谢了

转载于:https://www.cnblogs.com/J2EEPLUS/archive/2011/12/22/2487913.html

最新回复(0)