Spring Boot Bootcamp – Workbooks and Challenges
)}

Challenge

The code is getting messy. In this challenge, you will refactor it.

Open the challenge

Screen Shot 2022-08-16 at 1.33.30 AM.png

Task 1

Place the datastore and every CRUD operation inside the Repository layer.

Task 2

  • Place business and decision-making logic inside the Service layer.
  • Make the Service layer the middleman. Because the Service layer handles the business logic, it should make calls to the Repository.

Task 3

Make sure the controller's only concern is managing the model and presenting the view.

Task 4

Run your code to make sure everything still works.

Good Luck!

Feedback Summary
5.0
3 students
5

100%
4

0%
3

0%
2

0%
1

0%
Written Reviews
There are no written reviews yet.