Challenge: Spring In-depth

Test your understanding of Spring annotations by refactoring an e-commerce application to adhere to the principles of IoC and DI.

Problem statement

Assume a hypothetical scenario where we have an e-commerce application for selling e-books that currently implements the following discount strategies:

  1. Default discount: Applied to every purchase made online.

  2. Bundle discount: Applied when a specific bundle of books is purchased. ...