Browse Source

Remove redundant required=false

Fixes gh-26
Dave Syer 10 years ago
parent
commit
36fea0542e
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      complete/src/main/java/hello/GreetingController.java

+ 1
- 1
complete/src/main/java/hello/GreetingController.java View File

@@ -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
     }