Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

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

Open
blackcat1944 opened this issue Apr 17, 2018 · 13 comments
Open

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

blackcat1944 opened this issue Apr 17, 2018 · 13 comments

Comments

@blackcat1944
Copy link

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


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
Copy link

Iwk0 commented May 3, 2018

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

@bubblelin
Copy link

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

@OnomeOkuma
Copy link

I had this same issue. any solution?

@akadir
Copy link

akadir commented Sep 22, 2018

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
Copy link

czaryas commented Sep 29, 2018

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

@paweljarosz83
Copy link

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

@aplich
Copy link

aplich commented Nov 27, 2018

Any solution?

@nick964
Copy link

nick964 commented Dec 6, 2018

So is there still no fix for this?

@ljw6834
Copy link

ljw6834 commented Dec 19, 2018

any update? this is frustrating.

@maoqinglin
Copy link

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
Copy link

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
Copy link

czaryas commented Jan 31, 2019

has anyone found any alternate solution?

@abdulazizalmalki-gh
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests