Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在运行时使用 javassist 创建了一个节点实体和一个存储库。而且,我想将它们注册到弹簧数据上下文。我怎样才能做到这一点?
您可以注入一个 Neo4jMappingContext 实例,然后调用
ctx.getPersistentEntity(My.class)
这会将类注册到映射上下文。
对于存储库,它必须去弹簧重新布线,不确定那里的运行时注册。