Spring cannot generate abstract classes

Abstract classes cannot generate instance objects, and spring cannot inject them 

Because the principle of spring is to read the configuration file when the server is started, and then use the reflection mechanism to generate a singleton object in the spring context after obtaining the class name. Spring injects properties and maintains the state of the object. The abstract class generates an object by reflection. It has already failed, and the next one will not proceed

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326769118&siteId=291194637