接口 InitializingBean

    • 方法详细资料

      • afterPropertiesSet

        void afterPropertiesSet()
                         throws Exception
        Invoked by the containing BeanFactory after it has set all bean properties and satisfied BeanFactoryAware, ApplicationContextAware etc.

        This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.

        抛出:
        Exception - in the event of misconfiguration (such as failure to set an essential property) or if initialization fails for any other reason