GraalVM and Spring Applications

前端 未结 4 1808
有刺的猬
有刺的猬 2020-12-28 19:19

The GraalVM system apparently cannot compile a Spring application into a native image.

Can we compile a subset of the Spring application -- say, as a separate librar

4条回答
  •  温柔的废话
    2020-12-28 19:58

    For now one can use alternatives like Quarkus, Micronaut and Vert.X which have Spring-compatible features. They are all compilable to small native-code binary executables, start up in an instant and have tiny memory footprints.

    These new frameworks avoid GraalVM's limitations by interpreting the annotations and other specifications at build time. This way they avoid the run-time features of Java that the GraalVM AOT compiler native-image cannot support.

提交回复
热议问题