Quellcode durchsuchen

Fixes a wrong indication in the readme

Hi,

I have removed a sentence where there was an explanation about the `required=true` statement in the @RequestMapping explanation section, since it's not there in this tutorial.

I guess it's a copy/pasta mistake since this parameter is indeed present in the Spring MVC Web tutorial :+1:
BEAUDRU Manuel vor 6 Jahren
Ursprung
Commit
330efd7c66
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1
    1
      README.adoc

+ 1
- 1
README.adoc Datei anzeigen

@@ -106,7 +106,7 @@ The `@RequestMapping` annotation ensures that HTTP requests to `/greeting` are m
106 106
 
107 107
 NOTE: The above example does not specify `GET` vs. `PUT`, `POST`, and so forth, because `@RequestMapping` maps all HTTP operations by default. Use `@RequestMapping(method=GET)` to narrow this mapping.
108 108
 
109
-`@RequestParam` binds the value of the query string parameter `name` into the `name` parameter of the `greeting()` method. This query string parameter is explicitly marked as optional (`required=true` by default): if it is absent in the request, the `defaultValue` of "World" is used.
109
+`@RequestParam` binds the value of the query string parameter `name` into the `name` parameter of the `greeting()` method. If the `name` parameter is absent in the request, the `defaultValue` of "World" is used.
110 110
 
111 111
 The implementation of the method body creates and returns a new `Greeting` object with `id` and `content` attributes based on the next value from the `counter`, and formats the given `name` by using the greeting `template`.
112 112