Annotation Interface PostConstruct


@Target(METHOD) @Retention(RUNTIME) public @interface PostConstruct
Marks a method to be called after dependency injection is complete.
标记一个方法在依赖注入完成后调用。

This annotation is applied to a method that needs to be executed after the bean has been initialized and all dependencies have been injected.