Here’s an example to show you what’s the different between bean scope : singleton and prototype.