Spring Boot以及如何配置与MongoDB的连接详细信息? [英] Spring Boot and how to configure connection details to MongoDB?
本文介绍了Spring Boot以及如何配置与MongoDB的连接详细信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
作为Spring Boot的新手,我想知道如何为MongoDB配置连接详细信息. 我已经尝试了正常的示例,但没有一个涵盖连接详细信息.
Being new to Spring Boot I am wondering on how I can configure connection details for MongoDB. I have tried the normal examples but none covers the connection details.
我想指定将要使用的数据库以及运行MongoDB的主机的url/端口.
I want to specify the database that is going to be used and the url/port of the host that runs MongoDB.
有任何提示或提示吗?
推荐答案
查看全文