Closed kun1988 closed 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 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的自动配置类吗?
自己到
spring repo
这里的下载一份
改为 spring-social-autoconfigure-2.0.0.BUILD-SNAPSHOT.jar
与 spring-social-autoconfigure-2.0.0.BUILD-SNAPSHOT.pom
就行啦
我在spring boot 2.0.2.RELEASE中使用spring social 1.1.6.RELEASE 找不到SocialAutoConfigurerAdapter,不知道该怎么解决,谢谢。