I am autowiring a property(its a component) in an abstract class, This is not working , always coming a null; The same property has been autowired in other abstract class which is working absolutely fine. can some one please tell me , what would be the problem?
public abstract class BaseRegistry {
@Autowired
PropertyConfig propertyConfig;
}
@Repository
public class OptionsRegistry extends BaseRegistry{
}
@Component
public class PropertyConfig {
}