You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support following property. This property is available that use together with mybatis-spring 2.0.6+.
application.properties
mybatis.mapper-default-scope=refresh
Note:
If you want to use the refresh scope provided by Spring Cloud for the SqlSessionFactory that create by auto-configure, you can specified using following property provided by Spring Cloud.
See mybatis/spring#484
Support following property. This property is available that use together with mybatis-spring 2.0.6+.
application.properties
mybatis.mapper-default-scope=refresh
Note:
If you want to use the
refresh
scope provided by Spring Cloud for theSqlSessionFactory
that create by auto-configure, you can specified using following property provided by Spring Cloud.application.properties
spring.cloud.refresh.refreshable=org.apache.ibatis.session.SqlSessionFactory
P.S:
Until before mybatis-spring-boot 2.1.3 (mybatis-spring 2.0.5), it can be realize same behavior as follow:
application.properties
spring.cloud.refresh.refreshable=org.apache.ibatis.session.SqlSessionFactory,org.mybatis.spring.mapper.MapperFactoryBean
Of course this method is also available on mybatis-spring-boot 2.1.4+ (mybatis-spring 2.0.6+).
The text was updated successfully, but these errors were encountered: