|
@@ -12,8 +12,7 @@ public class GreetingController {
|
12
|
12
|
private final AtomicLong counter = new AtomicLong();
|
13
|
13
|
|
14
|
14
|
@RequestMapping("/greeting")
|
15
|
|
- public Greeting greeting(@RequestParam(value="name", defaultValue="World") String name) {
|
16
|
|
- return new Greeting(counter.incrementAndGet(),
|
17
|
|
- String.format(template, name));
|
|
15
|
+ public Greeting greeting(@RequestParam(value = "name", defaultValue = "World") String name) {
|
|
16
|
+ return new Greeting(counter.incrementAndGet(), String.format(template, name));
|
18
|
17
|
}
|
19
|
|
-}
|
|
18
|
+}
|