#21 -onlyTN I see

otevřený
tennesseegibbs chce sloučit 1 revizí z větve tennesseegibbs/ZCW-SpringZero:master do větve master

+ 6
- 0
complete/src/main/java/hello/GreetingController.java Zobrazit soubor

@@ -15,5 +15,11 @@ public class GreetingController {
15 15
     public Greeting greeting(@RequestParam(value="name", defaultValue="World") String name) {
16 16
         return new Greeting(counter.incrementAndGet(),
17 17
                             String.format(template, name));
18
+
19
+
20
+        @RequestMapping("/greeting?name=Another")
21
+        public Greeting greeting1(@RequestParam(value="name", defaultValue="Another") String name) {
22
+            return new Greeting(counter.incrementAndGet(),
23
+                    String.format(template, name));
18 24
     }
19 25
 }