1. Singleton (Bean scope property set to Singleton)
2. Prototype (The scope property of the bean is set to prototype)
3. The difference between
  • Singleton instance, Prototype multi-instance
  • When the scope value is set to singleton, the singleton is created when the Spring configuration file is loaded
  • When setting scope to prototype, instead of creating an object when loading the Spring configuration file, create a multi-instance object when calling the getBean method
  • Spring defaults to a single instance