GraalVM加速启动

0

https://github.com/graalvm/graalvm-ce-builds/releases?page=5
./bin/gu install native-image
./bin/gu install -L native-image-installable-svm-java11-linux-amd64-20.2.0.jar
./bin/native-image -Dspring.profiles.active=dev -jar ./application-1.0.0.jar

mvn spring-boot:build-image

mvn native:compile

参考文章:

  • https://docs.oracle.com/zh-cn/learn/graalvm-native-image-quick-start/index.html
  • https://docs.spring.io/spring-boot/docs/current/reference/html/native-image.html