spring-attic / spring-social

Allows you to connect your applications with SaaS providers such as Facebook and Twitter.
http://projects.spring.io/spring-social
Apache License 2.0
619 stars 350 forks source link

spring-social-twitter does not work with Spring boot 2 #251

Open blackcat1944 opened 6 years ago

blackcat1944 commented 6 years ago

Summary

spring-social-twitter does not work with Spring boot 2

Actual Behavior

I checked out the code from https://github.com/spring-guides/gs-accessing-twitter

I changed spring boot version to 2.0.1.RELEASE in the pom.xml The application fails to start with the message below Parameter 0 of constructor in hello.HelloController required a bean of type 'org.springframework.social.twitter.api.Twitter' that could not be found.

Expected Behavior

should start normally

Configuration

<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

4.0.0
<groupId>org.springframework</groupId>
<artifactId>gs-accessing-twitter</artifactId>
<version>0.1.0</version>

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.0.1.RELEASE</version>
</parent>

<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-thymeleaf</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.springframework.social</groupId>
        <artifactId>spring-social-twitter</artifactId>
        <version>1.1.2.RELEASE</version>
    </dependency>
</dependencies>

<properties>
    <java.version>1.8</java.version>
</properties>

<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
    </plugins>
</build>

Version

the sample code below is using Spring boot 1.5.10.RELEASE which works fine. The problem happens with Spring boot 2.0.1.RELEASE https://github.com/spring-guides/gs-accessing-twitter

Sample

https://github.com/spring-guides/gs-accessing-twitter

Iwk0 commented 6 years ago

I have the same problem. Did you find any solution?

bubblelin commented 6 years ago

Using Spring boot 2.0.2.RELEASE, The problem happens on my project.

OnomeOkuma commented 6 years ago

I had this same issue. any solution?

akadir commented 6 years ago

I have the same problem... It is not working with version 1.5.10.RELEASE also. I guess it is because of the changes in twitter api

czaryas commented 6 years ago

I am facing the same issue, any updates on spring boot 2 support?

paweljarosz83 commented 6 years ago

Is social media so insignificant you can just skip it from a web framework?

aplich commented 5 years ago

Any solution?

nick964 commented 5 years ago

So is there still no fix for this?

ljw6834 commented 5 years ago

any update? this is frustrating.

maoqinglin commented 5 years ago

Field twitter in masterspringmvc.controller.TwitterController required a bean of type 'org.springframework.social.twitter.api.Twitter' that could not be found

version:Spring Boot 2.1.1

surjitsinghbhachu commented 5 years ago

Is this planned to be fixed? Appreciate that Spring Social is end of life but we still need to use this in our Spring Boot 2 apps.

czaryas commented 5 years ago

has anyone found any alternate solution?

abdulazizalmalki-gh commented 5 years ago

I guess it's time to move to "Twitter4J" ..