我正在使用spring和hibernate编写RESTful服务.我在互联网上阅读了很多资源,但他们没有澄清我的疑虑.请详细解释一下spring框架中的DAO,DTO和Service层是什么?为什么在Spring中需要使用这些层来开发RESTfull API服务.
在我的mongodb中,一个数据库包含了这些集合,但是当我运行Robomongo时,我的数据库的0.8.5集合未显示(Robomongo 0.8.5(文件浏览器)的左侧).
如果我在Robomongo 0.8.5中运行以下查询,它会显示所有集合.
db.stats()
Run Code Online (Sandbox Code Playgroud)
另一个显示集合的查询
db.collectionName.find()//it shows all documents in collection
Run Code Online (Sandbox Code Playgroud)
请为此问题提出解决方案.