ustari28 / mn-first-rest

First rest service with micronaut framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rest service micronaut

Pre-requisites

  • It's necessary compile with graalvm distribution of JDK. You can download from here.
  • Install docker.
  • Install micronaut cli.

Create new application

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>

About

First rest service with micronaut framework


Languages

Language:Java 81.4%Language:Dockerfile 12.3%Language:Shell 6.3%