[英]MongoDB Schema Java Spring
I am aware that MongoDB doesn't have a Schema. 我知道MongoDB没有架构。 I have looked on the Internet but can't find anything.
我看过互联网,但找不到任何东西。
Basically there is a API for Java Spring MongoDB. 基本上,有一个Java Spring MongoDB API。 Is there any way to define a schema for MongoDB on top of Spring so the Schema can be controlled.
有什么方法可以在Spring之上为MongoDB定义架构,以便可以控制该架构。 I couldn't find anything.
我什么都找不到。
You should take a look at both Morphia and Spring Data MongoDB . 您应该同时查看Morphia和Spring Data MongoDB 。 Both of them are libraries that help you interact with MongoDB.
它们都是帮助您与MongoDB进行交互的库。
Here is a comparison between Morphia, Mongo4j, and Spring Data . 这是Morphia,Mongo4j和Spring Data之间的比较 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.