Component Scan is important concept when we want to create Bean. Currently we know what, for the class, we want to create Bean from it, we need to add @Component. @Component @Scope(ConfigurableBeanFactory.SCOPE_SINGLETON) public class ComponentPerson…