A controller annotation to validate a CSRF token value received
in a request whenever the property jakarta.
is set to jakarta.. If the
property jakarta. is set to
jakarta., then the use of this
annotation is redundant. Jakarta MVC implementations are only REQUIRED to enforce CSRF
for POST controllers that consume payloads of type
jakarta., but
other HTTP methods and payloads may be optionally supported by the
underlying implementation. If declared at the type level, it applies
to all methods in the type.
jakarta.mvc.security.Csrf