You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/actuator/endpoints.adoc
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -413,7 +413,7 @@ Operations on an endpoint receive input through their parameters.
413
413
When exposed over the web, the values for these parameters are taken from the URL's query parameters and from the JSON request body.
414
414
When exposed over JMX, the parameters are mapped to the parameters of the MBean's operations.
415
415
Parameters are required by default.
416
-
They can be made optional by annotating them with either `@javax.annotation.Nullable` or javadoc:org.springframework.lang.Nullable[format=annotation].
416
+
They can be made optional by annotating them with either javadoc:org.springframework.boot.actuate.endpoint.annotation.OptionalParameter[format=annotation] or javadoc:org.springframework.lang.Nullable[format=annotation].
417
417
418
418
You can map each root property in the JSON request body to a parameter of the endpoint.
419
419
Consider the following JSON request body:
@@ -547,7 +547,7 @@ NOTE: Range requests are not supported when using Jersey.
547
547
==== Web Endpoint Security
548
548
549
549
An operation on a web endpoint or a web-specific endpoint extension can receive the current javadoc:java.security.Principal[] or javadoc:org.springframework.boot.actuate.endpoint.SecurityContext[] as a method parameter.
550
-
The former is typically used in conjunction with either `@javax.annotation.Nullable` or javadoc:org.springframework.lang.Nullable[format=annotation] to provide different behavior for authenticated and unauthenticated users.
550
+
The former is typically used in conjunction with either javadoc:org.springframework.boot.actuate.endpoint.annotation.OptionalParameter[format=annotation] or javadoc:org.springframework.lang.Nullable[format=annotation] to provide different behavior for authenticated and unauthenticated users.
551
551
The latter is typically used to perform authorization checks by using its `isUserInRole(String)` method.
Copy file name to clipboardExpand all lines: module/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/invoke/reflect/OperationMethodParameter.java
Copy file name to clipboardExpand all lines: module/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/invoke/reflect/OperationMethodParameterTests.java
0 commit comments