diff --git a/src/main/java/com/yourname/demo/SpringBootCourseApplication.java b/src/main/java/com/yourname/demo/SpringBootCourseApplication.java index d722380..25d1f08 100644 --- a/src/main/java/com/yourname/demo/SpringBootCourseApplication.java +++ b/src/main/java/com/yourname/demo/SpringBootCourseApplication.java @@ -7,6 +7,8 @@ public class SpringBootCourseApplication { public static void main(String[] args) { + SpringApplication.run(SpringBootCourseApplication.class, args); + } } diff --git a/src/main/java/com/yourname/demo/model/Student.java b/src/main/java/com/yourname/demo/model/Student.java index 1fa2811..fa68170 100644 --- a/src/main/java/com/yourname/demo/model/Student.java +++ b/src/main/java/com/yourname/demo/model/Student.java @@ -6,17 +6,20 @@ public class Student { private UUID id; - private final Integer age; - private final String firstName; - private final String lastName; - private final String course; + private Integer age; + private String firstName; + private String lastName; + private String course; + + public Student(){ + } public Student( - @JsonProperty("id") UUID id, - @JsonProperty("age") Integer age, - @JsonProperty("firstName") String firstName, - @JsonProperty("lastName") String lastName, - @JsonProperty("course") String course) { + UUID id, + Integer age, + String firstName, + String lastName, + String course) { this.id = id; this.age = age; this.firstName = firstName; diff --git a/src/main/java/com/yourname/demo/service/StudentService.java b/src/main/java/com/yourname/demo/service/StudentService.java index 05ce42b..042a1f0 100644 --- a/src/main/java/com/yourname/demo/service/StudentService.java +++ b/src/main/java/com/yourname/demo/service/StudentService.java @@ -14,7 +14,7 @@ public class StudentService { private final StudentDao studentDao; @Autowired - public StudentService(@Qualifier("mongoDbDao") StudentDao studentDao) { + public StudentService(@Qualifier("fakeDao") StudentDao studentDao) { this.studentDao = studentDao; }