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.
We'll cover the following...
Problem statement
Assume a hypothetical scenario where we have an e-commerce application for selling e-books that currently implements the following discount strategies:
Default discount: Applied to every purchase made online.
Bundle discount: Applied when a specific bundle of books is purchased. ...