Deriving from a class that has Annotation @PostConstruct

After testing this scenario, the @PostConstruct method in the base class WILL automatically be called.

The flow goes like this:

  1. When the child class is created, you are in the constructor of the child class, you then are forced into the parent class automatically.
  2. Once the parent class constructor is done you are sent back to the child class’ constructor.
  3. Once the child class constructor is done you are automatically sent to the PARENT classes @PostConstruct method

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)