是版本冲突造成,在POM文件中指定版本就行 <properties> <java.version>1.8</java.version> <elasticsearch.version>7.5.0</elasticsearch.version> </properties>