我有一个测试域类 public class TestDocument {
private final String id;
private final String strField;
private final Integer intField;
public TestDocument(final String id, final String strField, final Integer intField) {
this.id = id;
this.strField = strField;
this
出现以下错误:
应用程序启动失败
描述:
Field template in com.rahul.es.api.service.QueryDSLService required a bean of type 'org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.fact
我使用了org.elasticsearch:elasticsearch版本6.8,为了连接,我使用了TransportClient。然后,我决定升级到7.6版,因为TransportClient被废弃了,所以我不得不通过RestHighLevelClient使用弹性连接。在此之后,开始后出现以下错误:
java.lang.IncompatibleClassChangeError: Found interface org.elasticsearch.common.bytes.BytesReference, but class was expected
at org.elasticsearch.c
我正在写数据并阅读它,我得到了异常作为"System.Xml.XmlException: Unexpected XML declaration",我无法弄清楚它是什么问题。
我还添加了一个例外,即它的printing.Please帮助我解决了这个问题。
这里我的代码:
public static void WriteTopicState(Topic topic)
{
try
{
using (var store = IsolatedStorageFile.GetUserStoreFo