springboot启动报错 Error creating bean with name 'userIdSource' defined in class path resource [xxx]

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userIdSource' defined in class path resource [org/springframework/social/config/annotation/SocialConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.social.UserIdSource]: Factory method 'userIdSource' threw exception; nested exception is java.lang.IllegalArgumentException: One configuration class must implement getUserIdSource from SocialConfigurer.

已解决:QQcofig类里少写了个函数

//获取登陆人
    @Override
    public UserIdSource getUserIdSource() {
        // TODO Auto-generated method stub
        return new AuthenticationNameUserIdSource();
    }

从异常来看,是创建“UserIdSource”类时报错:path不对 或 传入的参数不对

https://blog.csdn.net/qq_17025903/article/details/86649911