上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 40 下一页
摘要: 1.搭建mongodb服务 在https://www.mongodb.com/下载mongodb安装包,解压到本地 cmd中执行命令,启动本地mongodb: cd D:\Program Files\mongodb-win32-x86_64-3.2.0\bin mongod.exe --dbpath 阅读全文
posted @ 2017-02-15 11:05 艺言弈行 阅读(860) 评论(0) 推荐(0) 编辑
摘要: springboot启动类: jpa数据库操作类: 单元测试类: 执行结果: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'UserDaoTest': Injection 阅读全文
posted @ 2017-02-15 10:42 艺言弈行 阅读(1765) 评论(0) 推荐(0) 编辑
摘要: 整个项目结构: 定义user实体类 MainApp启动类: UserService接口类: Service实现类: rest接口类UserController: 1.mockmvc针对service的单元测试: 执行testAll()方法结果: 2.mockmvc针对rest接口类的测试: 执行te 阅读全文
posted @ 2017-02-14 14:13 艺言弈行 阅读(1779) 评论(0) 推荐(0) 编辑
摘要: application.properties: application-dev.properties: application-test.properties: application-prod.properties: TestProperties: PropertiesController: 启动 阅读全文
posted @ 2017-02-09 17:43 艺言弈行 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 第一个springboot程序 新建maven项目,添加如下依赖: 新建项目启动类: 新建restful接口类: 然后启动MainApp,浏览器中访问:http://localhost:8080/index,得到响应: 第一个springboot HelloWorld程序就完成了。 阅读全文
posted @ 2017-02-09 16:21 艺言弈行 阅读(328) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 40 下一页