Skip to content

Instantly share code, notes, and snippets.

@c16a
Created December 22, 2018 08:24
Show Gist options
  • Save c16a/b04d24907baa8f90ff2618257341ec0d to your computer and use it in GitHub Desktop.
Save c16a/b04d24907baa8f90ff2618257341ec0d to your computer and use it in GitHub Desktop.
Starter code for Helidon SE
<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.helidon</groupId>
<artifactId>helidon-bom</artifactId>
<version>${helidon.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>io.helidon.webserver</groupId>
<artifactId>helidon-webserver-netty</artifactId>
</dependency>
</dependencies>
</dependencyManagement>
import io.helidon.webserver.Routing;
import io.helidon.webserver.WebServer;
public static void main(String[] args) {
Routing routing = Routing.builder()
.get("/hello", (req, res) -> res.send("Hello World"))
.build();
WebServer.create(routing)
.start();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment