摘要: 单元测试 1、在pom包中添加spring-boot-starter-test包引用 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> 阅读全文
posted @ 2018-07-30 16:18 ~沐风 阅读(880) 评论(0) 推荐(0) 编辑
摘要: mongodb简介 传统的关系数据库一般由数据库(database)、表(table)、记录(record)三个层次概念组成, MongoDB是由数据库(database)、集合(collection)、文档对象(document)三个层次组成。 mongodb使用 1、pom包配置 2、在appl 阅读全文
posted @ 2018-07-30 10:45 ~沐风 阅读(401) 评论(0) 推荐(0) 编辑
摘要: springboot默认已经帮我们实行了,只需要添加相应的注解就可以实现。 1、pom包配置 2、启动类启用定时 在启动类上面加上@EnableScheduling即可开启定时 3、创建定时任务实现类 定时任务1: 定时任务2: 测试 参数说明 @Scheduled 参数可以接受两种定时的设置,一种 阅读全文
posted @ 2018-07-30 09:26 ~沐风 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 序言 Person class Person{ private String name; private int age; public Person() { super(); } public Person(String name, int age) { this.name = name; thi 阅读全文
posted @ 2018-07-30 00:08 ~沐风 阅读(2804) 评论(0) 推荐(0) 编辑