Will be great if Mybatis will generate interfaces implementation at compile time. Something like Micronaut does.

https://github.com/micronaut-projects/micronaut-core Micronaut uses Ahead of Time (AOT) compilation to pre-compute your applications requirements at compile time. The result of this is significantly lower memory requirements, faster startup time, and reflection free framework infrastructure.

This will also make possible to better integration with GraalVM.

Another great example is Micronaut Data.icronaut Data is a database access toolkit that uses Ahead of Time (AoT) compilation to pre-compute queries for repository interfaces that are then executed by a thin, lightweight runtime layer. https://github.com/micronaut-projects/micronaut-data https://micronaut-projects.github.io/micronaut-data/latest/guide/

maybe in version 3.6 or 4?

Comment From: tiro8183

Add support for Ahead-of-Time (AOT) compilation

Comment From: mylxy

什么时间增加对native-image的支持呢??

Comment From: zzhujing

when support native??

Comment From: suhengli

+1

Comment From: wwy0201

+1

Comment From: SunSunHaiBo

https://github.com/kazuki43zoo/mybatis-native-demo 试试这个呢

Comment From: xuxiaowei-com-cn

:sparkles: Support MyBatis for Spring Boot 3 Native