org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'countryServiceImpl' defined in file [E:\tms-ws\TransportManagement\target\classes\com\baltransport\tms\app\v1\service\impl\CountryServiceImpl.class]:
Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'countrySearchRepository': Invocation of init method failed;
nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate
[org.springframework.data.elasticsearch.repository.support.NumberKeyedRepository]:
Constructor threw exception; nested exception is org.springframework.data.elasticsearch.ElasticsearchException: Failed to build mapping for country:country
at org.springframework. ...
在添加任何自定义实体后获取此jHispter Elasticsearch异常。
第一次(使用默认的jdl)效果很好
答案 0 :(得分:0)
您可以尝试:
致谢
答案 1 :(得分:0)
您可以尝试直接从网址中删除elasticsearch中的索引。 假设您的索引称为“用户”,则可以执行
删除/ indexname