运行spring boot应用程序时,我得到java.lang.illegalargumentexception:未知设置[xpacks]
我使用的是spring-boot-2.2.6.release elasticsearch-6.8.8
我的日志如下:
原因:org.springframework.beans.beaninstantiationexception:未能示例化[org.elasticsearch.client.transport.transportclient]:工厂方法'elasticsearchclient'引发异常;嵌套异常为java.lang.illegalargumentexception:未知设置[xpack.security.enabled]请检查是否安装了任何必需的插件,或者检查org.springframework.beans.factory.support.simpleinstationstrategy.instantiate(simpleinstationstrategy)中删除设置的中断更改文档。java:185)~[spring-beans-5.2.5.发布。jar:5.2.5.release]在org.springframework.beans.factory.support.constructorresolver.instantiate(constructorresolver。java:651) ~[spring-beans-5.2.5.发布。jar:5.2.5.release]在org.springframework.beans.factory.support.constructorresolver.instantialEusingFactoryMethod(constructorresolver。java:484)~[spring-beans-5.2.5.发布。jar:5.2.5.release]在org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.instanceUsingFactoryMethod(abstractautowirecapablebeanfactory)。java:1338)~[spring-beans-5.2.5.发布。jar:5.2.5.release]位于org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbeaninstance(abstractautowirecapablebeanfactory)。java:1177) ~[spring-beans-5.2.5.发布。jar:5.2.5.release]位于org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory)。java:557)~[spring-beans-5.2.5.发布。jar:5.2.5.release]在org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory)。java:517)~[spring-beans-5.2.5.发布。jar:5.2.5.release]在org.springframework.beans.factory.support.abstractbeanfactory.lambda$dogetbean$0(abstractbeanfactory)。java:323)~[spring-beans-5.2.5.发布。jar:5.2.5.release]在org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry)。java:222)~[spring-beans-5.2.5.发布。jar:5.2.5.release]位于org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.com)。java:321)~[spring-beans-5.2.5.发布。jar:5.2.5.release]在org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory)。java:202)~[spring-beans-5.2.5.发布。jar:5.2.5.release]在org.springframework.beans.factory.config.dependencydescriptor.resolvecandidate(dependencydescriptor。java:276)~[spring-beans-5.2.5.发布。jar:5.2.5.release]在org.springframework.beans.factory.support.defaultlistablebeanfactory.doresolvedependency(defaultlistablebeanfactory)。java:1290)~[spring-beans-5.2.5.发布。jar:5.2.5.release]位于org.springframework.beans.factory.support.defaultlistablebeanfactory.resolvedependency(defaultlistablebeanfactory)。java:1210) ~[spring-beans-5.2.5.发布。jar:5.2.5.release]在org.springframework.beans.factory.support.constructorresolver.resolveautowiredargument(constructorresolver。java:885)~[spring-beans-5.2.5.发布。jar:5.2.5.release]在org.springframework.beans.factory.support.constructorresolver.createargumentarray(constructorresolver。java:789) ~[spring-beans-5.2.5.发布。jar:5.2.5.release]在org.springframework.beans.factory.support.constructorresolver.instantialEusingFactoryMethod(constructorresolver。java:539)~[spring-beans-5.2.5.发布。jar:5.2.5.release]在org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.instanceUsingFactoryMethod(abstractautowirecapablebeanfactory)。java:1338)~[spring-beans-5.2.5.发布。jar:5.2.5.release]位于org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbeaninstance(abstractautowirecapablebeanfactory)。java:1177) ~[spring-beans-5.2.5.发布。jar:5.2.5.release]位于org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory)。java:557)~[spring-beans-5.2.5.发布。jar:5.2.5.release]在org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory)。java:517)~[spring-beans-5.2.5.发布。jar:5.2.5.release]在org.springframework.beans.factory.support.abstractbeanfactory.lambda$dogetbean$0(abstractbeanfactory)。java:323)~[spring-beans-5.2.5.发布。jar:5.2.5.release]在org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry)。java:222)~[spring-beans-5.2.5.发布。jar:5.2.5.release]位于org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.com)。java:321)~[spring-beans-5.2.5.发布。jar:5.2.5.release]在org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory)。java:202)~[spring-beans-5.2.5.发布。jar:5.2.5.release]在org.springframework.beans.factory.config.dependencydescriptor.resolvecandidate(dependencydescriptor。java:276)~[spring-beans-5.2.5.发布。jar:5.2.5.release]在org.springframework.beans.factory.support.defaultlistablebeanfactory.doresolvedependency(defaultlistablebeanfactory)。java:1290)~[spring-beans-5.2.5.发布。jar:5.2.5.release]位于org.springframework.beans.factory.support.defaultlistablebeanfactory.resolvedependency(defaultlistablebeanfactory)。java:1210) ~[spring-beans-5.2.5.发布。jar:5.2.5.release]位于org.springframework.beans.factory.annotation.AutowiredNotationBeanPostProcessor$AutowiredFeldElement.inject(AutowiredNotationBeanPostProcessor)。java:640)~[spring-beans-5.2.5.发布。jar:5.2.5.release] ... 18更多原因:java.lang.illegalargumentexception:未知设置[xpack.security.enabled]请检查是否安装了任何必需的插件,或者查看org.elasticsearch.common.settings.abstractscopedsettings.validate(abstractscopedsettings)中删除的设置的breaking changes文档。java:530)~[ElasticSearch-6.8.8。jar:6.8.8]在org.elasticsearch.common.settings.abstractscopedsettings.validate(abstractscopedsettings。java:475)~[ElasticSearch-6.8.8。jar:6.8.8]在org.elasticsearch.common.settings.abstractscopedsettings.validate(抽象范围设置)。java:446)~[ElasticSearch-6.8.8。jar:6.8.8]在org.elasticsearch.common.settings.abstractscopedsettings.validate(abstractscopedsettings。java:417)~[ElasticSearch-6.8.8。jar:6.8.8]在org.elasticsearch.common.settings.settingsmodule。java:148) ~[ElasticSearch-6.8.8。jar:6.8.8]在org.elasticsearch.client.transport.transportclient.buildtemplate(transportclient。java:153)~[ElasticSearch-6.8.8。jar:6.8.8]在org.elasticsearch.client.transport.transportclient.(transportclient。java:288)~[ElasticSearch-6.8.8。jar:6.8.8]在org.elasticsearch.transport.client.prebuilttransportclient.(prebuilttransportclient。java:128)~[运输-6.8.8。jar:6.8.8]在org.elasticsearch.transport.client.prebuilttransportclient.(prebuilttransportclient。java:114)~[运输-6.8.8。jar:6.8.8]在org.elasticsearch.transport.client.prebuilttransportclient.(prebuilttransportclient。java:104) ~[运输-6.8.8。jar:6.8.8]在org.springframework.data.elasticsearch.client.transportclientfactorybean.buildclient(transportclientfactorybean)。java:85)~[spring-data-elasticsearch-3.2.6.发布。jar:3.2.6.release]在org.springframework.data.elasticsearch.client.transportclientfactorybean.afterpropertiesset(transportclientfactorybean。java:80) ~[spring-data-elasticsearch-3.2.6.发布。jar:3.2.6.release]位于org.springframework.boot.autoconfigure.data.elasticsearch.elasticsearchautoconfiguration.elasticsearchclient(elasticsearchautoconfiguration)。java:59)~[spring-boot-autoconfigure-2.2.6.发布。jar:2.2.6.release]在sun.reflect.nativemethodaccessorimpl.invoke0(本机方法)~[?:1.8.0ç]在sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl。java:62)~[?:1.8.0ç]在sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl。java:43)~[?:1.8.0\u 231]位于java.lang.reflect.method.invoke(method。java:498)~[?:1.8.0ç]在org.springframework.beans.factory.support.simpleinstationstrategy.instantiate(simpleinstationstrategy)。java:154)~[spring-beans-5.2.5.发布。jar:5.2.5.release]在org.springframework.beans.factory.support.constructorresolver.instantiate(constructorresolver。java:651)~[spring-beans-5.2.5.发布。jar:5.2.5.release]在org.springframework.beans.factory.support.constructorresolver.instantialEusingFactoryMethod(constructorresolver。java:484)~[spring-beans-5.2.5.发布。jar:5.2.5.release]位于org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.instantialEUsingFactoryMethod(abstractautowirecapablebeanfactory)。java:1338) ~[spring-beans-5.2.5.发布。jar:5.2.5.release]位于org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbeaninstance(abstractautowirecapablebeanfactory)。java:1177)~[spring-beans-5.2.5.发布。jar:5.2.5.release]在org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory)。java:557)~[spring-beans-5.2.5.发布。jar:5.2.5.release]位于org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory)。java:517) ~[spring-beans-5.2.5.发布。jar:5.2.5.release]在org.springframework.beans.factory.support.abstractbeanfactory.lambda$dogetbean$0(abstractbeanfactory)。java:323)~[spring-beans-5.2.5.发布。jar:5.2.5.release]位于org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry)。java:222) ~[spring-beans-5.2.5.发布。jar:5.2.5.release]位于org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.com)。java:321)~[spring-beans-5.2.5.发布。jar:5.2.5.release]在org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory。java:202) ~[spring-beans-5.2.5.发布。jar:5.2.5.release]在org.springframework.beans.factory.config.dependencydescriptor.resolvecandidate(dependencydescriptor。java:276)~[Spring
暂无答案!
目前还没有任何答案,快来回答吧!