将 Gremlin Server 配置为使用 Graphson 2.0



我已经下载了apache-tinkerpop-gremlin-server-3.4.4并尝试从 gremlin.net 连接它。

我收到错误:

ServerError: Could not deserialize the JSON value as required. Nested exception: org.apache.tinkerpop.shaded.jackson.core.JsonParseException: Unexpected character ('@' (code 64))

我认为服务器需要配置为使用文档中提到的 Graphson 2.0,但我找不到如何做到这一点。
任何关于配置tinkerpop gremlin服务器以使用Graphson 2.0的帮助都将得到认可。

添加:
- { className: org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV2d0, config: { ioRegistries: [org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerIoRegistryV2d0] }} # application/json
在"序列化程序"部分下的conf/gremlin-server.yaml中为我做了这个技巧

最新更新