I am following the tutorial to implement a twitter search on Spring framework. Unfortunately, I get an type mismatch error in here:
import org.springframework.social.twitter.api.impl.TwitterTemplate;
import twitter4j.Twitter;
...
Twitter twitter = new TwitterTemplate();
Type mismatch: cannot convert from TwitterTemplate to Twitter
Why am I getting this error? Should I just simply add a casting here?