In this lab you will get hands on practice configuring the Spring IOC container using annotations and component scanning.
- Create a private repository for this assignment by following these procedures making the following substitutions:
- For step 2, use this URL: https://github.com/jeff-anderson-cscc/lab3-spring-annotation-config/generate to create your private repository from my template
- For step 3, name your repository:
lab3-spring-annotation-config
- Add me as a collaborator so I can view and grade your work by following these procedures
- Create and checkout a new project for this lab in IntelliJ by following these procedures
- IMPORTANT: Before you start coding, create a new branch for your work as described here
Important: You may not change the code in any test cases. For a passing grade, the only permissible difference between the base version of each JUnit test class and yours is yours will have no tests commented out and the file is otherwise identical.
Instructions for completing the assignment:
- Open
src/main/java/edu.cscc.java4.spring.ioc.config/AnnotationConfigTests
in the editor:- Move the /* -- top block comment line to below the first Test
- Right click in the editor window and choose "Run AnnotationConfigTests"
- Change just enough code / configuration to make that test pass
- Repeat the last 3 steps until every test method runs without error
- Once you are done, commit your changes using "VCS" -> "Commit":
- Make sure the commit includes any new files you created
- Enter a proper comment
- Uncheck "Perform code analysis"
- The IoC Container
- Push your changes to GitHub, create a pull request, and ask for my review by following these procedures
- Once I have reviewed and approved your pull request, follow these procedures to submit your assignment in Blackboard