对于 AI 代理:可在 https://www.mongodb.com/zh-cn/docs/llms.txt 获取文档索引—通过在任何 URL 路径后添加 .md 可获取所有页面的 Markdown 版本。
Products
Platform
Atlas
Build and scale with an AI-ready platform
Platform Services
Database
Deploy a multi-cloud database
Search
Deliver engaging search experiences
Vector Search
Design intelligent apps with gen AI
Stream Processing
Integrate MongoDB and Kafka
Self Managed
Enterprise Advanced
Run and manage MongoDB yourself
Community Edition
Develop locally with MongoDB
Tools
Compass
Work with MongoDB data in a GUI
Integrations
Integrations with third-party services
Relational Migrator
Migrate to MongoDB with confidence
View All Products
Explore our full developer suite
arrow-right
MongoDB 8.0
Our fastest version ever
arrow-right
Build with MongoDB Atlas
Get started for free in minutes
Sign Up
Test Enterprise Advanced
Develop with MongoDB on-premises
Download
Try Community Edition
Explore the latest version of MongoDB
Download
Resources
Documentation
Atlas Documentation
Get started using Atlas
Server Documentation
Learn to use MongoDB
Tools and Connectors
Learn how to connect to MongoDB
MongoDB Drivers
Use drivers and libraries for MongoDB
Resources Hub
Get help building the next big thing with MongoDB
arrow-right
Connect
Community
Join a global community of developers
Courses and Certification
Learn for free from MongoDB
Events and Webinars
Find an event or webinar near you
Solutions
Use cases
Artificial Intelligence
Modernization
Payments
Serverless Development
Gaming
Intelligent Search
Edge and Mobile
Industries
Financial Services
Telecommunications
Healthcare
Retail
Public Sector
Manufacturing
Solutions Library
Organized and tailored solutions to kick-start projects
arrow-right
AI Applications Program
Expedite your AI journey with expert guidance
Learn more
arrow-right
Startups and AI Innovators
For world-changing ideas and AI pioneers
Learn more
arrow-right
Customer Case Studies
Hear directly from our users
See Stories
arrow-right
Company
Careers
Start your next adventure
Blog
Read articles and announcements
Newsroom
Read press releases and news stories
Partners
Learn about our partner ecosystem
Leadership
Meet our executive team
Company
Learn more about who we are
Contact Us
Reach out to MongoDB
Connect with an expert
arrow-right
Investors
Visit our investor portal
Learn more
arrow-right
Pricing
Eng
Support
Sign In
menu-vertical
Get Started
Products
Platform
Atlas
Build and scale with an AI-ready platform
Platform Services
Database
Deploy a multi-cloud database
Search
Deliver engaging search experiences
Vector Search
Design intelligent apps with gen AI
Stream Processing
Integrate MongoDB and Kafka
Self Managed
Enterprise Advanced
Run and manage MongoDB yourself
Community Edition
Develop locally with MongoDB
Tools
Compass
Work with MongoDB data in a GUI
Integrations
Integrations with third-party services
Relational Migrator
Migrate to MongoDB with confidence
View All Products
Explore our full developer suite
arrow-right
MongoDB 8.0
Our fastest version ever
arrow-right
Build with MongoDB Atlas
Get started for free in minutes
Sign Up
Test Enterprise Advanced
Develop with MongoDB on-premises
Download
Try Community Edition
Explore the latest version of MongoDB
Download
Resources
Documentation
Atlas Documentation
Get started using Atlas
Server Documentation
Learn to use MongoDB
Tools and Connectors
Learn how to connect to MongoDB
MongoDB Drivers
Use drivers and libraries for MongoDB
Resources Hub
Get help building the next big thing with MongoDB
arrow-right
Connect
Community
Join a global community of developers
Courses and Certification
Learn for free from MongoDB
Events and Webinars
Find an event or webinar near you
Solutions
Use cases
Artificial Intelligence
Modernization
Payments
Serverless Development
Gaming
Intelligent Search
Edge and Mobile
Industries
Financial Services
Telecommunications
Healthcare
Retail
Public Sector
Manufacturing
Solutions Library
Organized and tailored solutions to kick-start projects
arrow-right
AI Applications Program
Expedite your AI journey with expert guidance
Learn more
arrow-right
Startups and AI Innovators
For world-changing ideas and AI pioneers
Learn more
arrow-right
Customer Case Studies
Hear directly from our users
See Stories
arrow-right
Company
Careers
Start your next adventure
Blog
Read articles and announcements
Newsroom
Read press releases and news stories
Partners
Learn about our partner ecosystem
Leadership
Meet our executive team
Company
Learn more about who we are
Contact Us
Reach out to MongoDB
Connect with an expert
arrow-right
Investors
Visit our investor portal
Learn more
arrow-right
Pricing
Eng
Support
Sign In
menu-vertical
Get Started
Docs 菜单
询问 MongoDB AI
Docs 主页
/
客户端库
/
Scala
Docs 主页
/
客户端库
/
Scala
Docs 主页
/
客户端库
/
Scala
连接至 MongoDB
复制页面
Overview
学习如何在以下部分中使用 Scala 驱动程序设置从应用程序到 MongoDB 部署的连接并指定连接行为:
连接至 MongoDB
Stable API
选择连接目标
限制MongoDB Server执行时间
配置传输层安全 (TLS)
后退
开始体验
来年
创建客户端
给本页内容打分
在此页面上
Overview
在此页面上
Overview
Docs 主页
返回客户端库
Scala 驱动程序
v 5 .x(当前)
Overview
开始体验
连接
创建客户端
Stable API
选择连接目标
限制执行时间
配置 TLS
AWS Lambda
数据库和collection
读取数据
写入数据
对副本集的操作
索引
监控您的应用程序
数据聚合
Observables
安全性
问题与帮助
新增功能
升级
兼容性
查看来源
API 文档
Docs 主页
开始体验
开发中
管理
客户端库
工具
AI模型
Atlas 架构中心
返回客户端库
Scala 驱动程序
v 5 .x(当前)
Overview
开始体验
连接
创建客户端
Stable API
选择连接目标
限制执行时间
配置 TLS
AWS Lambda
数据库和collection
读取数据
写入数据
对副本集的操作
索引
监控您的应用程序
数据聚合
Observables
安全性
问题与帮助
新增功能
升级
兼容性
查看来源
API 文档