Okta oauth2 implementation on spring mvc

Hi Team, I am new to Okta.
I am working on some project which is based on spring mvc framework along with spring security implemented on it.
Now i want to implement okta on it, but on web i could find material which is based on spring boot application.
Could you please guide me how i can implement okta oauth2 on spring mvc framework [not using spring boot]

I’d like to know if there’s a tutorial for spring mvc as well. The ones linked in the forum no longer have a spring mvc example on it.

Preferrably, i’d like a tutorial that integrates Spring MVC with SAML, like this tutorial with Spring Boot and SAML over here.