Commit 2bd78355 authored by Stephane Nicoll's avatar Stephane Nicoll

Reference javax.annotation.Nonnull support in reference guide

See gh-24647
parent 1e9bfd03
...@@ -467,7 +467,7 @@ Operations on an endpoint receive input via their parameters. ...@@ -467,7 +467,7 @@ Operations on an endpoint receive input via their parameters.
When exposed via the web, the values for these parameters are taken from the URL's query parameters and from the JSON request body. When exposed via the web, the values for these parameters are taken from the URL's query parameters and from the JSON request body.
When exposed via JMX, the parameters are mapped to the parameters of the MBean's operations. When exposed via JMX, the parameters are mapped to the parameters of the MBean's operations.
Parameters are required by default. Parameters are required by default.
They can be made optional by annotating them with `@org.springframework.lang.Nullable`. They can be made optional by annotating them with either `@javax.annotation.Nonnull` or `@org.springframework.lang.Nullable`.
Each root property in the JSON request body can be mapped to a parameter of the endpoint. Each root property in the JSON request body can be mapped to a parameter of the endpoint.
Consider the following JSON request body: Consider the following JSON request body:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment