Sobes.tech
Junior — Middle

How many times is the @PostConstruct annotation called in the bean's lifecycle?

sobes.tech AI

Answer from AI

The @PostConstruct annotation is called exactly once in the bean's lifecycle after all dependencies have been injected and the bean is fully initialized, but before the bean is available for use. This allows for additional initialization, such as configuring internal fields or checking the object's state.