Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/hibernate/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 其中Hibernate搜索存储索引_Windows_Hibernate_Ubuntu_Lucene_Hibernate Search - Fatal编程技术网

Windows 其中Hibernate搜索存储索引

Windows 其中Hibernate搜索存储索引,windows,hibernate,ubuntu,lucene,hibernate-search,Windows,Hibernate,Ubuntu,Lucene,Hibernate Search,我想在Windows和Ubuntu上运行一个具有相同属性的项目 休眠搜索在此目录中创建索引: <property name="hibernate.search.default.indexBase" value="/Users/path"/> 在Windows上,此路径解析为D:\Users\path 在Ubuntu上,我无法运行项目,因为没有写入indexex的权限。我想给目录这样的权限,但我不知道Hibernate想在哪里创建这个目录。 Ubuntu如何解析该路径?您必须在U

我想在Windows和Ubuntu上运行一个具有相同属性的项目

休眠搜索在此目录中创建索引:

<property name="hibernate.search.default.indexBase" value="/Users/path"/>

在Windows上,此路径解析为D:\Users\path

在Ubuntu上,我无法运行项目,因为没有写入indexex的权限。我想给目录这样的权限,但我不知道Hibernate想在哪里创建这个目录。
Ubuntu如何解析该路径?

您必须在Ubuntu上使用与Windows上不同的值

如果需要相同的配置文件,可以省略此属性,并将其作为系统属性传递给JVM


Hibernate总是在其配置文件上查找匹配的系统属性和/或环境变量。

Ubuntu将该路径解析为
/Users/path