无法实现用于创建服务的 Olingo 教程示例
Unable to implement Olingo Tutorial example for creating service
我遵循了 Olingo 提供的样本:https://olingo.apache.org/doc/odata4/tutorials/read/tutorial_read.html
Maven 构建成功,但在 运行 服务上出现错误:java.lang.ClassCastException:serviceProvider.service.DemoEntityCollectionProcessor 无法转换为 org.apache.olingo.server.api.processor.Processor
代码是:
handler.register((处理器)
任何人都可以建议我可能做错了什么吗?
让它工作,我错过了在我的 *EntityCollectionProcessor class 中使用 'implements EntityCollectionProcessor'。现在工作正常
我遵循了 Olingo 提供的样本:https://olingo.apache.org/doc/odata4/tutorials/read/tutorial_read.html
Maven 构建成功,但在 运行 服务上出现错误:java.lang.ClassCastException:serviceProvider.service.DemoEntityCollectionProcessor 无法转换为 org.apache.olingo.server.api.processor.Processor
代码是: handler.register((处理器)
任何人都可以建议我可能做错了什么吗?
让它工作,我错过了在我的 *EntityCollectionProcessor class 中使用 'implements EntityCollectionProcessor'。现在工作正常