Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个骆驼设置来读取提要,我使用 splitEntries=true 并使用可用的 org.apache.camel.component.rss.RssEndpoint ,但它会跳过具有相同时间戳的提要。有人知道发生了什么吗?
终于找到解决办法了,需要自定义内部使用UpdatedDateFilter的FeedPollingConsumer类,去掉
lastUpdate.after(updated) || lastUpdate.equals(updated)
并删除 lastUpdate.equals(updated) ,以处理相同的 pubDate 时间戳提要。UpdatedDateFilter 也是不可扩展的,因此您可以从 FeedFilter 接口中实现自己的结帐。
谢谢。如果您有更好的解决方案,请告诉我。