File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -2003,6 +2003,12 @@ and others) and is equivalent to `required=false`.
2003
2003
| `java.security.Principal`
2004
2004
| Currently authenticated user -- possibly a specific `Principal` implementation class if known.
2005
2005
2006
+ Note that this argument is not resolved eagerly, if it is annotated in order to allow a custom resolver to resolve it
2007
+ before falling back on default resolution resolution via `HttpServletRequest#getUserPrincipal`.
2008
+ For example, the Spring Security `Authentication` implements `Principal` and would be injected as such via
2009
+ `HttpServletRequest#getUserPrincipal`, unless it is also annotated with `@AuthenticationPrincipal` in which case it
2010
+ is resolved by a custom Spring Security resolver through `Authentication#getPrincipal`.
2011
+
2006
2012
| `HttpMethod`
2007
2013
| The HTTP method of the request.
2008
2014
You can’t perform that action at this time.
0 commit comments