小编Pre*_*ail的帖子

更新JCR 2.0中节点内容

我尝试更新 JCR 2.0 中的节点

InputStream content = node.getProperty("jcr:content").getProperty("jcr:data").getBinary().getStream();

//TODO same with stream
Binary value = ...;

Node contentNode = node.getProperty("jcr:content");
contentNode.setProperty("jcr:content", value);
Run Code Online (Sandbox Code Playgroud)

我收到异常“javax.jcr.nodetype.ConstraintViolationException:项目受保护”。怎么了?

jackrabbit jcr

4
推荐指数
1
解决办法
3743
查看次数

标签 统计

jackrabbit ×1

jcr ×1