minor formatting cleanup
This commit is contained in:
@@ -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");
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user