You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: native-image/microservices/micronaut-hello-rest-maven-layered/README.md
+41-12Lines changed: 41 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,30 +1,53 @@
1
-
# Microanut Layered Native Image Demo
1
+
# Micronaut Layered Native Image Demo
2
2
3
3
This example shows how to build a simple [Micronaut](https://micronaut.io/) REST application using the [GraalVM Native Image Layers](https://github.com/oracle/graal/blob/master/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/imagelayer/NativeImageLayers.md) feature.
4
4
5
+
### Prerequisites
6
+
- SDKMAN! (for installing Micronaut CLI)
7
+
- Latest GraalVM 25.1 EA build (with Native Image support)
8
+
9
+
> Native Image Layers is an experimental feature. For the best experience use the latest [GraalVM Early Access Build](https://github.com/graalvm/oracle-graalvm-ea-builds/releases).
10
+
5
11
## Environment Setup
6
-
Point your `JAVA_HOME` to a GraalVM distribution.
7
-
Native Image Layers is an experimental feature, for best experience use the latest [GraalVM Early Access Build](https://github.com/graalvm/oracle-graalvm-ea-builds/releases).
12
+
Point your `JAVA_HOME` to the GraalVM distribution.
8
13
```bash
9
14
export JAVA_HOME=/path/to/graalvm/ea/build
10
15
```
11
16
12
-
## Create The Micronaut Application
13
-
14
-
We'll start by generating a basic application using the Micronaut CLI.
15
-
For more details see the [Micronaut guide](https://guides.micronaut.io/latest/creating-your-first-micronaut-app-maven-java.html).
16
-
17
-
First we need to install the `mn` tool:
17
+
Install `mn`, the Micronaut CLI tool:
18
18
```bash
19
19
sdk install micronaut 4.9.4
20
20
sdk use micronaut 4.9.4
21
21
```
22
22
23
-
Now we ca generate the basic app:
23
+
## Create the Micronaut Application
24
+
25
+
We'll start by generating a basic application using the Micronaut CLI.
26
+
For more details, see the [Micronaut guide](https://guides.micronaut.io/latest/creating-your-first-micronaut-app-maven-java.html).
0 commit comments