1
即使我已将其复制到Eclipse中项目文件夹的根目录,我仍无法让我的项目读取我的twitter4j.properties
文件。Twitter4j.properties文件未被读取
oauth.consumerKey=thisismyconsumerkey
oauth.consumerSecret=thisismyconsumersecret
oath.accessToken=14778563-thisismyaccesstoken
oath.accessTokenSecret=thisismyaccesstokensecret
debug=true
http.prettyDebug=true
我发起的Twitter信息中,像这样:
TwitterStream twitterStream = new TwitterStreamFactory().getInstance();
twitterStream.addListener(listener);
twitterStream.sample();
我能够得到应用,如果我手动运行我已经按照配置向导,像这样填写的属性文件使用ConfigurationBuilder
进行设置,但我希望应用程序改为读取我的属性文件。为了让我的项目能够识别文件,还有其他事情需要我做吗?