MyBatis 集成 Spring Native 功能 该项目包含 MyBatis 集成 Spring Native 功能。要求 Java 11+ G…
MyBatis 集成 Spring Native 功能 该项目包含 MyBatis 集成 Spring Native 功能。要求 Java 11+ G…
The project that the MyBatis integration with Spring Native feature.
Specify the mybatis-spring-native-core on pom.xml as follows:
Maven:
org.mybatis.spring.native
mybatis-spring-native-core
0.1.0-SNAPSHOT
Gradle:
dependencies {
compile("org.mybatis.spring.native:mybatis-spring-native-core:0.1.0-SNAPSHOT")
}If you use other extension modules provided by mybatis, please specify the mybatis-spring-native-extensions instead of mybatis-spring-native-core.
Maven:
org.mybatis.spring.native
mybatis-spring-native-extensions
0.1.0-SNAPSHOT
Gradle:
dependencies {
compile("org.mybatis.spring.native:mybatis-spring-native-extensions:0.1.0-SNAPSHOT")
}Add Sonatype OSS snapshot repository when use MyBatis's snapshot modules.
Maven:
sonatype-oss-snapshots
Sonatype OSS Snapshots Repository
https://oss.sonatype.org/content/repositories/snapshots
Gradle:
repositories {
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}If you want to build this project, please will execute following procedures.
NOTE: Pre Conditions
Need to following environment variables are defined.
JAVA_HOMEGRAALVM_HOME
./mvnw -Pnative clean packageWARNING:
Building all modules takes long time.
./mvnw -pl core,samples/simple -Pnative clean packageNOTE:
Please replace the 'simple' part on above example to sample's suffix value(e.g. xml, sqlprovider and more) that you want to build.
./mvnw -pl core,extensions,samples/thymeleaf -Pnative clean packageExecute the following command when the build is completed.
./samples/simple/target/mybatis-spring-native-sample-simple…./samples/simple/target/mybatis-spring-native-sample-simple-exec.jar…Thanks for helping this project creation!!
Josh Long(@joshlong)
Josh provided the first sample application.
Stéphane Nicoll(@snicoll)
Stéphane resolved and helped some issues for running MyBatis on native image.
暂无开放 Issues,或尚未同步最近议题。