摘要: 初始化: yarn init 使用命令: yarn add mongodb 新建 index.js 文件: const MongoClient = require('mongodb').MongoClient; const db_name = "fly_articleDb"; const url = 阅读全文
posted @ 2023-10-03 12:05 辰梦starDream 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 如何使用 spring-boot 操作 mongodb 数据库 配置文件: spring: data: mongodb: host: 127.0.0.1 database: fly_articleDb port: 27017 # 可以采取 mysql 写法 # uri: mongodb://127. 阅读全文
posted @ 2023-10-03 11:58 辰梦starDream 阅读(5) 评论(0) 推荐(0) 编辑