我正在尝试从 Azure Cosmos Db 集合中检索文档。我遇到了一个错误
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.UnsupportedOperationException: PartitionKey value must be supplied for this operation.] with root cause
java.lang.UnsupportedOperationException: PartitionKey value must be supplied for this operation.
我试图在网上查找如何为函数 findById() 提供分区键值,但似乎“Azure Spring 数据 cosmosdb”没有为 java 函数提供分区键的选项执行
orderTransactionRepository.findById("id").get
Cats萌萌
相关分类