Przeglądaj źródła

Remove redundant required=false

Fixes gh-26
Dave Syer 10 lat temu
rodzic
commit
36fea0542e

+ 1
- 1
complete/src/main/java/hello/GreetingController.java Wyświetl plik

@@ -12,7 +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", required=false, defaultValue="World") String name) {
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 18
     }