diff --git a/Server/src/main/java/hello/Application.java b/Server/src/main/java/hello/Application.java index 09ac9d8..c85fdb0 100644 --- a/Server/src/main/java/hello/Application.java +++ b/Server/src/main/java/hello/Application.java @@ -3,9 +3,11 @@ package hello; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +//application to boot with spring @SpringBootApplication public class Application { + //run the application public static void main(String[] args) { SpringApplication.run(Application.class, args); } diff --git a/Server/src/main/java/hello/GreetingController.java b/Server/src/main/java/hello/GreetingController.java index 49499f6..30e8af3 100644 --- a/Server/src/main/java/hello/GreetingController.java +++ b/Server/src/main/java/hello/GreetingController.java @@ -13,6 +13,7 @@ public class GreetingController { @RequestMapping("/greeting") public Greeting greeting(@RequestParam(value="name", defaultValue="World") String name) { + //increment the id every time the page is refreshed (a new user visits the page) return new Greeting(counter.incrementAndGet(), String.format(template, name)); }