Skip to content

Commit

Permalink
Add missing callouts
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Nov 17, 2022
1 parent cd27fbe commit f6eaa8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions framework-docs/src/docs/asciidoc/web/webmvc.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1938,6 +1938,7 @@ You can also use the same with request header conditions, as the following examp
// ...
}
----
<1> Testing whether `myHeader` equals `myValue`.

TIP: You can match `Content-Type` and `Accept` with the headers condition, but it is better to use
<<mvc-ann-requestmapping-consumes, consumes>> and <<mvc-ann-requestmapping-produces, produces>>
Expand Down Expand Up @@ -2826,6 +2827,7 @@ You can automatically apply validation after data binding by adding the
// ...
}
----
<1> Validate the `Pet` instance.

Note that using `@ModelAttribute` is optional (for example, to set its attributes).
By default, any argument that is not a simple value type (as determined by
Expand Down Expand Up @@ -2945,6 +2947,7 @@ as the following example shows:
// ...
}
----
<1> Using a `@SessionAttribute` annotation.

For use cases that require adding or removing session attributes, consider injecting
`org.springframework.web.context.request.WebRequest` or
Expand Down

0 comments on commit f6eaa8e

Please sign in to comment.