It's not literally hard to understand, it's because of abstract classes.
Abstract classes cannot be referenced directly, so a instantiationexception exception has been created.
So what exactly is the problem?
<bean id= "Abstractjob" class= "Cn.ncs.test.job.AbstractJob" >
Above this is like Abstractjob abstractjob=new abstractjob ();
Assuming Abstractjob is an abstract class, where can it be executed?
By default <bean> has a value called abstract he defaults to False
When we do spring pojo, we need to be aware of this, and the mapping of abstract classes is absolutely to set the abstract to true:
<bean id= "Abstractjob" class= "Cn.ncs.test.job.AbstractJob" abstract= "true" >
And the reference must not be used for injection, only for its subclasses to do inheritance, as follows:
<bean id= "Zerojob" class= "Cn.ncs.test.job.ZeroJob" parent= "Abstractjob" >
ok! understand, finish the call.