Line 10 uses the framework ClassPathXmlApplicationContext to create factory object to load the bean configuration file from the given path.
Crafting a perfect jelly bean takes a week or more.
This material may not be published, broadcast, rewritten or redistributed.
By extending the AbstractFactoryBean class, your factory bean can simply override the createInstance method to create the target bean instance.
However, this can result in some functions no longer being available.
BeanCreationException: Error creating bean with name 'userServiceImpl': Injection of resource dependencies failed; nested exception is org.