当前位置: 首页 > 知识库问答 >
问题:

如何降级elasticsearch版本当我使用Spring启动2.4.0?

谢弘阔
2023-03-14

当我使用spring boot 2.4.0时,如何降级elasticsearch版本??我想使用elasticsearch版本6.6.0,但当使用spring boot 2.4.0版本时,即使在dependency中指定了6.6.0,也会自动使用7.9.4版本的dependency。如何将elasticsearch版本降级到6.6.0您有这个吗?

共有2个答案

谭彦
2023-03-14

我通过向gradle添加此代码来解决此问题。建筑

buildscript {
    ...
    ext {
        ...
        set('elasticsearch.version', '6.6.0')
    }

通过使用这段代码,我可以将elasticsearch的版本改写为6.6.0,即使我使用的是spring boot veresion 2.4.0。

佟颖逸
2023-03-14

导入时的排除在maven中不起作用!!

<dependencyManagement>
    <dependencies>
       <!-- define all downgraded version of elastic search dependencies here. I mean ALL -->


        <dependency>
            <groupId>my-group</groupId>
            <artifactId>my-group-project-bom</artifactId>
            <version>${project.version}</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-dependencies</artifactId>
            <type>pom</type>
            <version>${spring-boot.version}</version>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

https://stackoverflow.com/a/63099817/8646703

 类似资料:
  • 我错误地升级了我的flutter版本,我需要回到1.20.3版本,因为我现在使用的版本不稳定。我使用第一个选项(snap)下载flutter,而不是手动下载,所以我不知道如何将我的版本降级到1.20.3。拜托,有人知道怎么做?

  • 问题内容: 我想将Node版本从最新版本降级到。 但是到目前为止,没有任何效果。尝试了NVM,并且通过说未找到make命令也给出了错误。如何降级Node? 问题答案: 您可以将其用于节点的版本管理。有一个简单的介绍。 这是非常容易使用。 然后您可以显示您的节点版本: 对于Windows,nvm是一个受欢迎的工具。

  • 有人能建议我把同样的降级吗? 我尝试使用npm命令安装软件包,但它不起作用。 根据angular cli git hub讨论,我了解到软件包降级可能会起作用,但使用npm Install,我不会得到任何1.6版本而不是1.6.4版本。

  • 我最近安装了Angular 6,并想重新使用Angular 5.2如何将我的Angular版本从我拥有的任何版本更改为我选择的任何版本?

  • 当SpringWebServiceStarter与2.1一起使用时,我无法构建SpringBoot应用程序。13.Spring护套的释放版本。这是因为SpringWS-core:jar:3.0。8.释放。 构建应用程序时出现异常:它出现在默认测试用例执行期间。 警告: 组织的POM。springframework。ws:springws-core:jar:3.0。8.版本无效,可传递依赖项(如果有

  • 我已经安装了ensorflow 1.2.1,我需要将其降级到版本1.1以运行特定的教程。安全的做法是什么?我使用Windows 10, python 3.5.Tensorflow是用pip3安装的,但是"pip3 show tensorflow"返回空白。 有可能在同一个操作系统上有多个版本的tenstorflow吗?