|
144 | 144 | * Such command objects along with their validation results will be exposed
|
145 | 145 | * as model attributes, by default using the non-qualified command class name
|
146 | 146 | * 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. |
149 | 149 | * <li>{@link org.springframework.validation.Errors} /
|
150 | 150 | * {@link org.springframework.validation.BindingResult} validation results
|
151 | 151 | * for a preceding command/form object (the immediate preceding argument).
|
152 | 152 | * <li>{@link org.springframework.web.bind.support.SessionStatus} status handle
|
153 | 153 | * 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). |
156 | 156 | * <li>{@link org.springframework.web.util.UriComponentsBuilder}
|
157 | 157 | * (Servlet-only, {@literal @MVC 3.1-only})
|
158 | 158 | * for preparing a URL relative to the current request's host, port, scheme,
|
|
161 | 161 | *
|
162 | 162 | * <p>The following return types are supported for handler methods:
|
163 | 163 | * <ul>
|
164 |
| - * <li>A {@code ModelAndView} object (Servlet MVC or Portlet MVC), |
| 164 | + * <li>A {@link ModelAndView} object (Servlet MVC or Portlet MVC), |
165 | 165 | * 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. |
167 | 167 | * <li>A {@link org.springframework.ui.Model Model} object, with the view name
|
168 | 168 | * implicitly determined through a {@link org.springframework.web.servlet.RequestToViewNameTranslator}
|
169 | 169 | * 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. |
171 | 171 | * <li>A {@link java.util.Map} object for exposing a model,
|
172 | 172 | * with the view name implicitly determined through a
|
173 | 173 | * {@link org.springframework.web.servlet.RequestToViewNameTranslator}
|
174 | 174 | * 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. |
176 | 176 | * <li>A {@link org.springframework.web.servlet.View} object, with the
|
177 | 177 | * model implicitly determined through command objects and
|
178 |
| - * {@link ModelAttribute} annotated reference data accessor methods. |
| 178 | + * {@link ModelAttribute @ModelAttribute} annotated reference data accessor methods. |
179 | 179 | * The handler method may also programmatically enrich the model by
|
180 | 180 | * declaring a {@link org.springframework.ui.Model} argument (see above).
|
181 | 181 | * <li>A {@link String} value which is interpreted as view name,
|
182 | 182 | * 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. |
184 | 184 | * The handler method may also programmatically enrich the model by
|
185 | 185 | * declaring a {@link org.springframework.ui.ModelMap} argument
|
186 | 186 | * (see above).
|
|
198 | 198 | * <li>A {@link Callable} which is used by Spring MVC to obtain the return
|
199 | 199 | * value asynchronously in a separate thread transparently managed by Spring MVC
|
200 | 200 | * 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} |
202 | 202 | * which the application uses to produce a return value in a separate
|
203 | 203 | * thread of its own choosing, as an alternative to returning a Callable.
|
204 | 204 | * <li>{@code void} if the method handles the response itself (by
|
|
211 | 211 | * only applicable in a Servlet environment).
|
212 | 212 | * <li>Any other return type will be considered as single model attribute
|
213 | 213 | * 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 |
216 | 216 | * 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. |
218 | 218 | * </ul>
|
219 | 219 | *
|
220 | 220 | * <p><b>NOTE:</b> {@code @RequestMapping} will only be processed if an
|
|
0 commit comments