Applicable oauth2 token is generated and org. Springframework. Security. Oauth2. The provider. The method of endpoint class TokenEndpoint postAccessToken slowly, execution time two hundred to three hundred milliseconds. How to optimize

Comment From: DengChen2020

org.springframework.boot spring-boot-starter-parent 2.7.5 org.springframework.boot spring-boot-starter-security org.springframework.security.oauth.boot spring-security-oauth2-autoconfigure 2.1.18.RELEASE org.springframework.boot spring-boot-starter-oauth2-client org.springframework.boot spring-boot-starter-oauth2-resource-server

Comment From: wilkinsona

spring-security-oauth2-autoconfigure is no longer supported. Please migrate to the OAuth2 support that is built into Spring Security.