Skip to content

Commit 2d018e5

Browse files
committed
Polish @RequestMapping Javadoc
Issue: SPR-10587
1 parent 38c2f25 commit 2d018e5

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

spring-web/src/main/java/org/springframework/web/bind/annotation/RequestMapping.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,15 @@
144144
* Such command objects along with their validation results will be exposed
145145
* as model attributes, by default using the non-qualified command class name
146146
* in property notation (e.g. "orderAddress" for type "mypackage.OrderAddress").
147-
* Specify a parameter-level {@link ModelAttribute} annotation for declaring
148-
* a specific model attribute name.
147+
* Specify a parameter-level {@link ModelAttribute @ModelAttribute} annotation for
148+
* declaring a specific model attribute name.
149149
* <li>{@link org.springframework.validation.Errors} /
150150
* {@link org.springframework.validation.BindingResult} validation results
151151
* for a preceding command/form object (the immediate preceding argument).
152152
* <li>{@link org.springframework.web.bind.support.SessionStatus} status handle
153153
* for marking form processing as complete (triggering the cleanup of session
154-
* attributes that have been indicated by the {@link SessionAttributes} annotation
155-
* at the handler type level).
154+
* attributes that have been indicated by the {@link SessionAttributes @SessionAttributes}
155+
* annotation at the handler type level).
156156
* <li>{@link org.springframework.web.util.UriComponentsBuilder}
157157
* (Servlet-only, {@literal @MVC 3.1-only})
158158
* for preparing a URL relative to the current request's host, port, scheme,
@@ -161,26 +161,26 @@
161161
*
162162
* <p>The following return types are supported for handler methods:
163163
* <ul>
164-
* <li>A {@code ModelAndView} object (Servlet MVC or Portlet MVC),
164+
* <li>A {@link ModelAndView} object (Servlet MVC or Portlet MVC),
165165
* with the model implicitly enriched with command objects and the results
166-
* of {@link ModelAttribute} annotated reference data accessor methods.
166+
* of {@link ModelAttribute @ModelAttribute} annotated reference data accessor methods.
167167
* <li>A {@link org.springframework.ui.Model Model} object, with the view name
168168
* implicitly determined through a {@link org.springframework.web.servlet.RequestToViewNameTranslator}
169169
* and the model implicitly enriched with command objects and the results
170-
* of {@link ModelAttribute} annotated reference data accessor methods.
170+
* of {@link ModelAttribute @ModelAttribute} annotated reference data accessor methods.
171171
* <li>A {@link java.util.Map} object for exposing a model,
172172
* with the view name implicitly determined through a
173173
* {@link org.springframework.web.servlet.RequestToViewNameTranslator}
174174
* and the model implicitly enriched with command objects and the results
175-
* of {@link ModelAttribute} annotated reference data accessor methods.
175+
* of {@link ModelAttribute @ModelAttribute} annotated reference data accessor methods.
176176
* <li>A {@link org.springframework.web.servlet.View} object, with the
177177
* model implicitly determined through command objects and
178-
* {@link ModelAttribute} annotated reference data accessor methods.
178+
* {@link ModelAttribute @ModelAttribute} annotated reference data accessor methods.
179179
* The handler method may also programmatically enrich the model by
180180
* declaring a {@link org.springframework.ui.Model} argument (see above).
181181
* <li>A {@link String} value which is interpreted as view name,
182182
* with the model implicitly determined through command objects and
183-
* {@link ModelAttribute} annotated reference data accessor methods.
183+
* {@link ModelAttribute @ModelAttribute} annotated reference data accessor methods.
184184
* The handler method may also programmatically enrich the model by
185185
* declaring a {@link org.springframework.ui.ModelMap} argument
186186
* (see above).
@@ -198,7 +198,7 @@
198198
* <li>A {@link Callable} which is used by Spring MVC to obtain the return
199199
* value asynchronously in a separate thread transparently managed by Spring MVC
200200
* on behalf of the application.
201-
* <li>A {@code org.springframework.web.context.request.async.DeferredResult}
201+
* <li>A {@link org.springframework.web.context.request.async.DeferredResult}
202202
* which the application uses to produce a return value in a separate
203203
* thread of its own choosing, as an alternative to returning a Callable.
204204
* <li>{@code void} if the method handles the response itself (by
@@ -211,10 +211,10 @@
211211
* only applicable in a Servlet environment).
212212
* <li>Any other return type will be considered as single model attribute
213213
* to be exposed to the view, using the attribute name specified through
214-
* {@link ModelAttribute} at the method level (or the default attribute name
215-
* based on the return type's class name otherwise). The model will be
214+
* {@link ModelAttribute @ModelAttribute} at the method level (or the default attribute
215+
* name based on the return type's class name otherwise). The model will be
216216
* implicitly enriched with command objects and the results of
217-
* {@link ModelAttribute} annotated reference data accessor methods.
217+
* {@link ModelAttribute @ModelAttribute} annotated reference data accessor methods.
218218
* </ul>
219219
*
220220
* <p><b>NOTE:</b> {@code @RequestMapping} will only be processed if an

0 commit comments

Comments
 (0)