Fork me on GitHub
摘要: 环境配置 在Java项目中使用MongoDB,需要在项目中引入mongo.jar这个包。下载地址:下载 请尽量下载较新的版本,本文用的是2.10.1。 连接MongoDB 1 public synchronized static DB getDBConnection() throws Unknown 阅读全文
posted @ 2016-01-29 16:51 insaneXs 阅读(391) 评论(0) 推荐(0) 编辑