longfeizheng / logback

💡 SpringBoot+Spring Security基本配置
MIT License
822 stars 348 forks source link

SocialAutoConfigurerAdapter找不到 #6

Closed kun1988 closed 6 years ago

kun1988 commented 6 years ago

我在spring boot 2.0.2.RELEASE中使用spring social 1.1.6.RELEASE 找不到SocialAutoConfigurerAdapter,不知道该怎么解决,谢谢。

longfeizheng commented 6 years ago

已升级至spring boot 2.0.2.RELEASE版本。添加


....
 <dependency>
            <groupId>org.springframework.social</groupId>
            <artifactId>spring-social-autoconfigure</artifactId>
            <version>2.0.0.BUILD-SNAPSHOT</version>
        </dependency>

......
 <repositories>
        <repository>
            <id>spring-snapshots</id>
            <name>Spring Snapshots</name>
            <url>https://repo.spring.io/snapshot</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>spring-milestones</id>
            <name>Spring Milestones</name>
            <url>https://repo.spring.io/milestone</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
    </repositories>

    <pluginRepositories>
        <pluginRepository>
            <id>spring-snapshots</id>
            <name>Spring Snapshots</name>
            <url>https://repo.spring.io/snapshot</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </pluginRepository>
        <pluginRepository>
            <id>spring-milestones</id>
            <name>Spring Milestones</name>
            <url>https://repo.spring.io/milestone</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </pluginRepository>
    </pluginRepositories>

解决社交登录问题

luozhix commented 6 years ago

已升级至spring boot 2.0.2.RELEASE版本。添加

....
 <dependency>
            <groupId>org.springframework.social</groupId>
            <artifactId>spring-social-autoconfigure</artifactId>
            <version>2.0.0.BUILD-SNAPSHOT</version>
        </dependency>

......
 <repositories>
        <repository>
            <id>spring-snapshots</id>
            <name>Spring Snapshots</name>
            <url>https://repo.spring.io/snapshot</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>spring-milestones</id>
            <name>Spring Milestones</name>
            <url>https://repo.spring.io/milestone</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
    </repositories>

    <pluginRepositories>
        <pluginRepository>
            <id>spring-snapshots</id>
            <name>Spring Snapshots</name>
            <url>https://repo.spring.io/snapshot</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </pluginRepository>
        <pluginRepository>
            <id>spring-milestones</id>
            <name>Spring Milestones</name>
            <url>https://repo.spring.io/milestone</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </pluginRepository>
    </pluginRepositories>

解决社交登录问题

按照你这样的方法依旧无法获取spring-social-autoconfigure.现在有新版本带有social的自动配置类吗?

ZhuoSiChen commented 5 years ago

自己到 spring repo
这里的下载一份 改为 spring-social-autoconfigure-2.0.0.BUILD-SNAPSHOT.jar 与 spring-social-autoconfigure-2.0.0.BUILD-SNAPSHOT.pom 就行啦