@Bean
    public OAuth2AuthorizationService oAuth2AuthorizationService(SecurityProperties securityProperties, RedissonClient redisson) {
        String tokenType = securityProperties.getResourceServer().getTokenType();
        if (TokenType.MEMORY.getName().equals(tokenType)) {
            return new InMemoryOAuth2AuthorizationService();
        }
        return new RedisOAuth2AuthorizationService(securityProperties, redisson);
    }
@author zlt
@date: 2023/11/25
<p>
Blog: https://zlt2000.gitee.io
Github: https://github.com/zlt2000
zlt-commons/zlt-auth-client-spring-boot-starter/src/main/java/com/central/oauth2/common/config/BaseSecurityConfig.java