类 ApplicationPreparedEvent

    • 构造器详细资料

      • ApplicationPreparedEvent

        public ApplicationPreparedEvent​(SpringApplication application,
                                        String[] args,
                                        org.springframework.context.ConfigurableApplicationContext context)
        Create a new ApplicationPreparedEvent instance.
        参数:
        application - the current application
        args - the arguments the application is running with
        context - the ApplicationContext about to be refreshed
    • 方法详细资料

      • getApplicationContext

        public org.springframework.context.ConfigurableApplicationContext getApplicationContext()
        Return the application context.
        返回:
        the context