Spring Boot boot process (iii)

Source: Internet
Author: User

I have been very concise, two (Spring boot boot process (a), Pring boot boot process (ii)) is still not finished, and then come.

Refreshcontext after the method is AfterRefresh, the name of the real ... Good. The AfterRefresh method only calls a Callrunners method, which obtains all the implementation classes of the Applicationrunner and Commandlinerunner interfaces from the context and executes the run methods of these implementation classes. For example, Joblaunchercommandlinerunner for spring batch:

    @Override    publicvoidthrows  jobexecutionexception {        Logger.info ("Running default command line with:" + arrays.aslist (args));         ="));    }

listeners.finished (context, NULL) actually publishes the Applicationreadyevent event in case exception is null.

Starting here is almost the same, so stop stopwatch.stop (), and then hit the time log: Started application in ***.462 seconds (JVM running for ***.977), And then feel the momentum of the throw after this memory:

            if (this. Logstartupinfo) {                new Startupinfologger (this. Mainapplicationclass)                        . logstarted (Getapplicationlog (), stopWatch);            }

This concludes by returning a Context,run method.

==========================================================

The github:https://github.com/saaavsaaa we used recently

Public Number:

                      

Spring Boot boot process (iii)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.