This is the initial library resource server application that is the starting point for the hands-on part to implement an OAuth2/OIDC resource server.
The completed reference for the resource server (based on this initial application) can be found here.
See Spring Security 5 resource server for details on how to build and configure a resource server.