我正在编写一个Spring批处理作业,它使用开箱即用的MongoItemReader。我的工作是通过XML配置的。我正在通过接受类型org.springframework.data.mongodb.core.query.Query的设置器来设置"query“属性。Caused by: java.lang.IllegalStateException: Cannot convert value of type 'org.springframework.data.mongodb.core.q
通常,在使用spring数据存储库时,需要一个可以存储结果数据的对象,如本例中的customer:https://spring.io/guides/gs/accessing-data-mongodb/converter found capable of converting from type [org.bson.types.ObjectId] to type [java.lang.Long] 如何将ObjectId转换为Lo