抱歉,您的浏览器无法访问本站
本页面需要浏览器支持(启用)JavaScript
了解详情 >

前言

最近在重构之前宇宙 mei毕设项目的注册中心,为了跟 Docker 容器技术无缝衔接将原先的 SQLServer 换成了与前端统一的 mongodb。让人不愉快的是,java 调用 mongodb 时遇到了好些问题,首先是 mongo版本更新3.0.0之后DB 相关的 API 已经废弃不用了,直接导致很多不够新的书籍都不具有参考价值;此外无论官网提供的 API 参考还是网络上很多教程,要么就是甩了一堆天花龙凤的代码,要么就是摸不着头脑的类列表。所以才有了这篇方便理顺思路的文章。

ing","description":"Antarx 的个人博客","inLanguage":"zh-CN","mainEntityOfPage":{"@type":"WebPage"},"author":{"@type":"Person","name":"Antarx","image":{"@type":"ImageObject","url":"https://unpkg.com/volantis-static@0.0.1654736714924/media/org.volantis/blog/favicon/android-chrome-192x192.png"},"url":"https://antarx.com/"},"publisher":{"@type":"Organization","name":"Antarx' Blog","logo":{"@type":"ImageObject","url":"https://unpkg.com/volantis-static@0.0.1654736714924/media/org.volantis/blog/favicon/android-chrome-192x192.png","width":192,"height":192}},"wordCount":0,"image":{"@type":"ImageObject","url":"https://unpkg.com/volantis-static@0.0.1654736714924/media/org.volantis/blog/favicon/android-chrome-192x192.png","width":192,"height":192}}]