use mybatis3.4.4 and mybatis-spring1.3.1

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

use mybatis3.4.4 and mybatis-spring1.3.1

li yang
hi, it's about cacheEnabled property.
i use mybatis and  mybatis-spring, i want to disabled cache, i configured it like this:
bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="configurationProperties">
<props>
<prop key="cacheEnabled">false</prop>
</props>
</property>
</bean>

i look through the source code,in  SqlSessionFactoryBean , it will set the properties to org.apache.ibatis.session.Configuration   but, the variables are not applied to cacheEnabled field in Configuration,  why?  how can i disabled cache? 

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Loading...