我已经寻找了很长一段时间,如何使用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中什么是等效的呢?
发布于 2016-04-23 03:10:36
基本上,您必须在repository.xml中定义该FileBlobStore,即所谓的DataStore。
<Repository>
<DataStore .../> <!-- optional, available since 1.4 -->
</Repository>https://stackoverflow.com/questions/35339000
复制相似问题