|
|
|
|
148
|
|
148
|
|
149
|
-
|
149
|
-
|
150
|
### Part 10.1 - Create `StudentConfig`
|
150
|
### Part 10.1 - Create `StudentConfig`
|
151
|
-* **Note:** The creation of this class will demonstrate an implementation of bean registration in Spring.
|
|
|
|
|
151
|
+* **Note:** The creation of this class will demonstrate an implementation of _bean registration_ in Spring.
|
152
|
* The class should define a method named `currentStudents()` which returns a `Students` representative of the current cohort of students.
|
152
|
* The class should define a method named `currentStudents()` which returns a `Students` representative of the current cohort of students.
|
153
|
* the method should be annotated with `@Bean(name = "students")`
|
153
|
* the method should be annotated with `@Bean(name = "students")`
|
154
|
* this ensures the Spring container registers the bean with the respective name.
|
154
|
* this ensures the Spring container registers the bean with the respective name.
|