我一直在寻找如何设置使用 JackRabbit 存储的文件的位置。 在 JackRabbit Oak 中我这样做:
FileBlobStore store = new FileBlobStore(repository);
DocumentNodeStore documentStore = new DocumentMK.Builder()
.setBlobStore(store).getNodeStore();
Repository repo = new Jcr(new Oak(documentStore)).createRepository();
但是我需要使用 JackRabbit 2.0,那么 JackRabbit 2.0 中的等效项是什么?
最佳答案
您基本上必须在repository.xml 中定义所谓的DataStore 的FileBlobStore。
<Repository>
<DataStore .../> <!-- optional, available since 1.4 -->
</Repository>
关于java - 设置存储位置 JackRabbit,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35339000/