摘要: 1、快速创建maven工程:http://start.spring.io/ pom.xml依赖如下图: 2、在applicaiton.properties里引入MongoDB 3、SpringBoot有几种方式可以使用MongoDB,这里介绍使用MongoTemplate这种方式 3.1 编写Use 阅读全文
posted @ 2017-09-12 20:36 tao.fly 阅读(144) 评论(0) 推荐(0)
摘要: 最近项目中使用了SpringBoot+NoSQL数据库MongoDB,由于和传统的项目有很大的区别,开发效率更加高,故在此纪录。 1、下载MongoDB:https://www.mongodb.com/download-center#community 2、安装 将MongoDB安装在目标盘:如G: 阅读全文
posted @ 2017-09-12 19:58 tao.fly 阅读(174) 评论(0) 推荐(0)