从基于移动或浏览器的应用程序连接MongoDB [英] Connecting MongoDB from Mobile or Browser based Application

查看:58
本文介绍了从基于移动或浏览器的应用程序连接MongoDB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站使用Mongo作为其数据库.我想知道Mongo网站上的Java驱动程序是否也适用于Android,因为我读到它不受支持.

解决方案

Simpy认为,Android应用程序首先直接 连接到MongoDB并不是一个好主意.

您应该考虑好像它只是另一个Web客户端,并为要交换或更新的所有数据实现RESTful接口.请查看这些链接,否则可能会滚动您自己的界面.

My website uses Mongo as its database. I was wondering if the Java driver from the Mongo website applies to Android as well because I read that it wasn't supported.

解决方案

Simpy put it's not a good Idea for your Android app to connect to MongoDB directly in the first place.

You should be thinking as if it was just another web client and implement a RESTful interface for all the data you want to exchange or update. Look at these links as a possibility or otherwise roll your own interface.

这篇关于从基于移动或浏览器的应用程序连接MongoDB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆