Skip to content

Spring Native provides beta support for compiling Spring applications to native executables using GraalVM native-image compiler.

License

Notifications You must be signed in to change notification settings

SelimHorri/spring-native

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status 0.9.0 documentation

Spring Native provides beta support for compiling Spring applications to native executables using GraalVM native-image compiler, in order to provide a native deployment option typically designed to be packaged in lightweight containers. In practice, the target is to support your Spring Boot application , almost unmodified, on this new platform.

Watch the video and read the blog post of Spring Native Beta announcement to learn more. Announcing Spring Native Beta!

Quick start

The easiest way to start with Spring Native is probably to go to start.spring.io, add the Spring Native dependency, and read the reference documentation. Make sure to configure properly the Spring AOT Maven and Gradle plugins that are mandatory to get proper native support for your Spring application.

Play with the samples

Note
You need to install the GraalVM native-image compiler, check the documentation for more details.
  • Download and extract sources from the latest release.

  • Go into the samples folder and pick one (e.g. cd samples/commandlinerunner)

  • Run ./build.sh which will run the regular JVM build, then a native image compilation, then test the result.

For more details on the samples see the samples documentation.

Contributing

If you have not previously done so, please sign the Contributor License Agreement. You will be reminded automatically when you submit the pull request.

Contributions are welcome, especially for adding support via pull requests for libraries widely used in the Spring ecosystem not yet support. Please refer to the how to contribute section for more details.

Baseline

The development version on master is currently based on GraalVM 20.1.0 and Spring Boot 2.4.4-SNAPSHOT. Mac, Linux and Windows are supported.

About

Spring Native provides beta support for compiling Spring applications to native executables using GraalVM native-image compiler.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 98.1%
  • Shell 1.6%
  • Other 0.3%