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

Add SqlSessionFactoryBeanCustomizer #619

Conversation

kazuki43zoo
Copy link
Member

See gh-617

Add SqlSessionFactoryBeanCustomizer for easily integrating with spring-native. In native-image, dynamic scan not work at runtime. Therefore we scan any resources(e.g. typeAliasesClasses, typeHandlerClasses, mapperLocations) at build timing using Spring AOT, and apply scanned resources to mybatis using ConfigurationCustomizer and SqlSessionFactoryBeanCustomizer(new class) at bean definition phase.

@kazuki43zoo kazuki43zoo added this to the 2.2.2 milestone Jan 8, 2022
@kazuki43zoo kazuki43zoo self-assigned this Jan 8, 2022
@coveralls
Copy link

Coverage Status

Coverage increased (+0.05%) to 96.905% when pulling 06e74bf on kazuki43zoo:gh-617.support-spring-native.add-SqlSessionFactoryBeanCustomizer into 13863e2 on mybatis:master.

@kazuki43zoo kazuki43zoo merged commit 3fbcfb5 into mybatis:master Jan 8, 2022
@kazuki43zoo kazuki43zoo deleted the gh-617.support-spring-native.add-SqlSessionFactoryBeanCustomizer branch January 8, 2022 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants