org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'elasticsearchTemplate' defined in class path resource [org/springframework/boot/autoconfigure/data/elasticsearch/ElasticsearchDataAutoConfiguration.class]: Unsatisfied dependency expressed through method 'elasticsearchTemplate' parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'elasticsearchConverter' defined in class path resource [org/springframework/boot/autoconfigure/data/elasticsearch/ElasticsearchDataAutoConfiguration.class]: Unsatisfied dependency expressed through method 'elasticsearchConverter' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mappingContext' defined in class path resource [org/springframework/boot/autoconfigure/data/elasticsearch/ElasticsearchDataAutoConfiguration.class]: Post-processing of merged bean definition failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/data/mapping/model/Property
[*]spring-data-elasticsearch 3.0.1.RELEASE. @Configuration @EnableElasticsearchRepositories(basePackages = "com.landfiles.farms.repository") public class ESConfig { @Value("${elasticsearch) .host}") частная строка EsHost; @Value("${elasticsearch.port}") частное целое число EsPort; @Bean public Client client() выдает исключение { return new PreBuiltTransportClient(Settings.EMPTY) .addTransportAddress(new InetSocketTransportAddress( InetAddress.getByName(EsHost) ), EsPort));
@Bean public ElasticsearchOperations elasticsearchTemplate() выдает исключение { return new ElasticsearchTemplate(client());
[/list] У меня произошел сбой при запуске приложения:[code]java.lang.NoClassDefFoundError: org/springframework/data/mapping/model/Property [/code] Полная трассировка стека: [code]org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'elasticsearchTemplate' defined in class path resource [org/springframework/boot/autoconfigure/data/elasticsearch/ElasticsearchDataAutoConfiguration.class]: Unsatisfied dependency expressed through method 'elasticsearchTemplate' parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'elasticsearchConverter' defined in class path resource [org/springframework/boot/autoconfigure/data/elasticsearch/ElasticsearchDataAutoConfiguration.class]: Unsatisfied dependency expressed through method 'elasticsearchConverter' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mappingContext' defined in class path resource [org/springframework/boot/autoconfigure/data/elasticsearch/ElasticsearchDataAutoConfiguration.class]: Post-processing of merged bean definition failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/data/mapping/model/Property [/code] Ссылка на проблему Jira (без ответа): https://github.com/spring-projects/spring-data-elasticsearch/issues/939 (ранее DATAES-364) У кого-нибудь есть работающий пример hello world? Спасибо!
Я хочу использовать перколятор. Есть ли какая-либо поддержка в Spring Data elasticsearch? Я не вижу ничего в приведенной выше ссылке, хотя понимаю, что просачивание аналогично индексированию (технически с...
Требуется помощь: выполните вложенную агрегацию с помощью Spring Data Elasticsearch 5.2.6 и Elasticsearch-rest-client 8.10
Я работаю над проектом, используя Elasticsearch с Spring Data Elasticsearch 5.2.6, и у меня возникают трудности для правильной...
Я использую клиент Java API Elasticsearch 8.x для индексации документов в Elasticsearch. При индексировании я указываю конвейер приема, который будет выполняться во время приема данных.
public Mono addContent(RequestDoc requestDoc) {
IndexRequest...
Я пытаюсь передать модель данных серверу в Android, используя модернизацию для регистрации учетной записи пользователя. Когда я отправляю тип данных пользовательских данных на сервер через пост, я получаю проблему. Http 500 Указываю, что значения...