摘要: 1 pom.xml配置 增加包依赖:spring-boot-starter-data-mongodb 2 application.properties配置文件中增加: ceshidb是数据库名字 2.4版本以上的mongodb采用如下格式配置: 3 创建实体类 4 创建dao接口和实现类 5 创建s 阅读全文
posted @ 2018-09-11 14:57 kaixinmao1987 阅读(449) 评论(0) 推荐(0) 编辑