网站建设合同 模板,网站数据库是干什么的,自己做剧本网站,美团企业邮箱提额3000目录
下载与安装 整合springboot
下载与安装
下载地址#xff1a;Download MongoDB Community Server | MongoDB 下载后点击.msi文件进行安装 安装过程中有一个默认勾选的 “Install MongoDB Compass”#xff0c;务必取消勾选#xff0c;否则安装会特别慢 MongoDB 启动前…目录
下载与安装 整合springboot
下载与安装
下载地址Download MongoDB Community Server | MongoDB 下载后点击.msi文件进行安装 安装过程中有一个默认勾选的 “Install MongoDB Compass”务必取消勾选否则安装会特别慢 MongoDB 启动前需要指定一个位置存放数据库文件 在 data 内建一个 db 文件夹 在服务中找到MongoDB并启动 在bin目录下打开cmd窗口输入以下命令替换 你的\db\路径 为你刚才创建的路径
mongod --dbpath D:\MongoDB\data 浏览器访问http://localhost:27017/
显示It looks like you are trying to access MongoDB over HTTP on the native driver port.则安装成功 整合springboot
导入依赖
dependencygroupIdorg.springframework.boot/groupIdartifactIdspring-boot-starter-data-mongodb/artifactId
/dependency
配置
server:port: 9998
spring:data:mongodb:host: localhostport: 27017database: test