简体   繁体   English

RESTful Web服务+ MongoDB(@Netbeans)

[英]RESTful webservice + MongoDB (@Netbeans)

I'm trying to develop a RESTful webservice to put and get data to/from a Mongo database. 我正在尝试开发一个RESTful Web服务,以将数据放入Mongo数据库或从Mongo数据库获取数据。 For creating this webservices, I'm following the netbeans tutorial https://netbeans.org/kb/docs/websvc/rest.html[1] . 为了创建此Web服务,我遵循netbeans教程https://netbeans.org/kb/docs/websvc/rest.html[1] The thing is, even with the Mongo DB plugin installed on netbeans, the db doesn't appear on the data sources when trying to create new RESTful Web Services from Database. 问题是,即使在netbeans上安装了Mongo DB插件,当尝试从数据库创建新的RESTful Web服务时,db也不会出现在数据源上。 Any ideas on how to make this work? 关于如何进行这项工作的任何想法? Thanks in advance. 提前致谢。

The tutorial deals with JDBC data sources. 本教程处理JDBC数据源。 Mongo DB is a non-relational DB, or NOSQL DB. Mongo数据库是非关系数据库或NOSQL数据库。 You cannot use is via JDBC. 您不能通过JDBC使用。 Are you sure you are following the tutorial correctly? 您确定您正确地遵循了本教程吗? You may want to use MySQL. 您可能要使用MySQL。 Then it will appear in the list. 然后它将出现在列表中。

Of course you can use Mongo DB. 当然,您可以使用Mongo DB。 But not via JDBC. 但不能通过JDBC。 And there will be no data source displayed. 并且不会显示任何数据源。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM