- It's necessary compile with graalvm distribution of JDK. You can download from here.
- Install docker.
- Install micronaut cli.
mn create-app mn-first-rest --features graal-native-image --build maven
The default embebed server is netty. This server gives no-blocking environment.
<dependency>
<groupId>io.micronaut</groupId>
<artifactId>micronaut-http-server-netty</artifactId>
<scope>compile</scope>
</dependency>
Add lombok support in annotationProcessorPaths
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>