GraalVM 本机映像支持

GraalVM Native Images 是独立的可执行文件,可以通过提前处理已编译的 Java 应用程序来生成。Native Images 通常比其 JVM 对应程序占用更少的内存并启动更快。

支持

所需的 AOT 运行时提示已内置到 Spring for Apache Pulsar 中,因此它可以在基于 Native Image 的 Spring 应用程序中无缝使用。

Spring for Apache Pulsar 中的 Native Image 支持已在基本场景中进行过测试,我们期望它能够“正常工作”。然而,更高级的用例可能会暴露需要向您的应用程序添加额外运行时提示的需求。如果发生这种情况,请在 Github issue 中提交一些详细信息。

下一步

如果您有兴趣为自己的应用程序添加 Native Image 支持,那么一个很好的起点是 Spring Boot 参考文档的 Spring Boot GraalVM 支持 部分。

尽管上述指南中没有提及 Spring for Apache Pulsar,但您可以在以下坐标找到具体示例

© . This site is unofficial and not affiliated with VMware.