Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support configuration property for 'default-scope' provided by mybatis-spring #469

Closed
kazuki43zoo opened this issue Jun 21, 2020 · 0 comments · Fixed by #470
Closed

Support configuration property for 'default-scope' provided by mybatis-spring #469

kazuki43zoo opened this issue Jun 21, 2020 · 0 comments · Fixed by #470
Assignees
Milestone

Comments

@kazuki43zoo
Copy link
Member

kazuki43zoo commented Jun 21, 2020

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 the SqlSessionFactory 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+).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant