mybatis / mybatis-3

MyBatis SQL mapper framework for Java
http://mybatis.github.io/mybatis-3/
Apache License 2.0
19.7k stars 12.82k forks source link

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

Open GeorgeSalu opened 1 year ago

GeorgeSalu commented 1 year ago

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?

tiro8183 commented 1 year ago

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

mylxy commented 1 year ago

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

zzhujing commented 1 year ago

when support native??

suhengli commented 1 year ago

+1

wwy0201 commented 1 year ago

+1

SunSunHaiBo commented 1 year ago

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

xuxiaowei-com-cn commented 1 month ago

:sparkles: Support MyBatis for Spring Boot 3 Native