Skip to content

SakaDream/spring-boot-native-image-demo

Repository files navigation

spring-boot-native-image-demo

Spring Boot with GraalVM Native Image Demo

Require

  • GraalVM 20.2 (Tested with Java 11 version)
  • After install GraalVM and add GraalVM installation to JAVA_HOME and PATH. Install Native Image plugin
gu install native-image

Build

  • In Windows, you must install the Visual Studio Build Tools 2010 (Java 8 version) or Build Tools 2017 or above (Java 11 version), then open the x64 Native Tools Command Prompt (Native Image only supports x64 cmd)
  • In Linux/macOS, open your terminal then type
mvn -Pnative clean package

Run

  • Windows
target\com.sakadream.nativeimage.application.exe
  • Linux/macOS
target\com.sakadream.nativeimage.application

Releases

No releases published

Packages

No packages published

Languages