The method annotated by @PostConstruct is executed after the constructor of the class is loaded, that is, after the constructor is loaded, the init method is executed. This method is similar to configuring the init-method and destruction-method methods in xml, and defines the operations that the spring container does before the bean is initialized and the container is destroyed.