alina-yur / native-spring-boot Goto Github PK
View Code? Open in Web Editor NEWBuild and test various capabilities of Spring Boot & GraalVM
License: Apache License 2.0
Build and test various capabilities of Spring Boot & GraalVM
License: Apache License 2.0
I am a beginner in GraalVM and currently in the testing phase. Could you please share some resources on setting up projects and learning materials? Thank you~
I am very inexperienced in GraalVM.
Thanks for the demo, just a couple things.
I'm trying to run mvn -Pinstrumented native:compile and -Poptimized but getting the following error:
Error: Please specify class (or /) containing the main entry point method. (see --help)
When I add com.example.demo.DemoApplication to the instrumented and or optimized plugin configuration it builds but when I run target/demo-instrumented it just shows the spring-boot startup message then terminates.
mvn -Pnative native:compile works without having to specify the mainClass.
Any ideas? I'm I missing something?
Environment:
java version "21.0.2" 2024-01-16 LTS
Java(TM) SE Runtime Environment Oracle GraalVM 21.0.2+13.1 (build 21.0.2+13-LTS-jvmci-23.1-b30)
Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 21.0.2+13.1 (build 21.0.2+13-LTS-jvmci-23.1-b30, mixed mode, sharing)
Thanks,
Hi @alina-yur,
I'm following your sample and I could generate the default.iprof now I'm wondering how can I generate a docker image using spring plugin, do you know if that's possible?
mvn -Pnative spring-boot:build-image
<plugin>
<groupId>org.graalvm.buildtools</groupId>
<artifactId>native-maven-plugin</artifactId>
<configuration>
<buildArgs>
<buildArg>--pgo=default.iprof</buildArg>
<buildArg>--gc=G1</buildArg>
</buildArgs>
</configuration>
</plugin>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.