【问题标题】:Is there a easy way to change a directory in application iml to build folder for tests?有没有一种简单的方法可以更改应用程序 iml 中的目录以构建测试文件夹?
【发布时间】:2020-10-15 02:35:18
【问题描述】:

我正在通过 Spring-boot 玩 lucine。由于测试和权限,我想将该文件夹设置为构建文件夹。

这是我现在的代码:

spring.jpa.hibernate.search.default.indexBase: ${LUCINE_FOLDER:/data/index/default}

稍后在部署时,我可以通过环境变量 LUCINE_FOLDER 轻松控制它

我希望它是这样的:

spring.jpa.hibernate.search.default.indexBase: ${LUCINE_FOLDER:build/index/default}

我也在用 gradle

【问题讨论】:

    标签: spring-boot hibernate gradle


    【解决方案1】:

    我通过本地堆找到了解决方案:

    spring.jpa.properties.hibernate.search.default.directory_provider:本地堆

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-03-06
      • 2011-10-08
      • 1970-01-01
      • 2017-04-30
      • 1970-01-01
      • 2012-01-05
      • 2010-09-06
      相关资源
      最近更新 更多