如何解决Azure Purview Java RestClient - 使用包含 @ 和 . 点
我正在使用 Java 客户端连接到 Azure Purview。 Java 客户端的创建如Azure Purview Rest API 中所述。我收到了来自 API 的响应,但看起来包含 @ 和 dot 的键的反序列化存在一些问题。这些键的值始终映射为 null。
以下是我从 PostMan 测试时收到的 JSON 示例。
{
"@search.count": 10,"value": [
{
"@search.score": 5.234,"@search.highlights": {
"qualifiedName": [
"https://test.dfs.core.windows.net/container-target/<em>test</em> retail information/"
],"name": [
"<em>test</em> retail information"
]
},"id": "74634859-1s43-89sd-s2n4-42e7f71c7bd4","@search.text": "<em>test</em> retail information"
}
]
}
以下是生成的 Java 映射文件中的代码:
@JsonProperty(value = "@search\\.count")
private Integer searchcount;
@JsonProperty(value = "@search\\.facets")
private JsonSearchFacetResultValue searchfacets;
我曾尝试将属性更改为 @search.count
,但这没有帮助。
我调试发现,当从rest客户端调用Azure API时,收到的响应值是正确的,但没有映射到POJO。
您能帮我了解一下可能是什么问题吗?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。