Summary
Currently some of the samples in the Spring Security documentation are using the lambda DSL. We should update all of the samples to use the lambda DSL.
The formatting should look like this:
http
.oauth2ResourceServer(oauth2 -> oauth2
.jwt()
);