Created
December 22, 2018 08:24
-
-
Save c16a/b04d24907baa8f90ff2618257341ec0d to your computer and use it in GitHub Desktop.
Starter code for Helidon SE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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