minor formatting cleanup

This commit is contained in:
eugenp
2017-01-29 15:57:30 +02:00
parent c565173601
commit bf95d0aa9d
11 changed files with 80 additions and 105 deletions

View File

@@ -1,12 +1,13 @@
package com.baeldung.sparkjava;
import static spark.Spark.*;
public class HelloWorldService {
public static void main(String[] args) {
get("/hello", (req,res)->"Hello, Baeldung");
get("/hello/:name", (req,res)->{
return "Hello: "+ req.params(":name");
get("/hello", (req, res) -> "Hello, Baeldung");
get("/hello/:name", (req, res) -> {
return "Hello: " + req.params(":name");
});
}
}