在配置类Xxx extends AuthorizationServerConfigurerAdapter中,添加端点配置
@Override
public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception {
endpoints
.tokenStore(tokenStore);
}
注意endpoints可能还会有其他的配置,tokenstore是你放在容器中的。