@@ -254,8 +254,9 @@ Application events are sent in the following order, as your application runs:
254254except for the registration of listeners and initializers.
255255. An `ApplicationEnvironmentPreparedEvent` is sent when the `Environment` to be used in
256256the context is known but before the context is created.
257- . An `ApplicationContextInitializedEvent` is sent when the `ApplicationContext` is prepared
258- and ApplicationContextInitializers have been called but before any bean definitions are loaded.
257+ . An `ApplicationContextInitializedEvent` is sent when the `ApplicationContext` is
258+ prepared and ApplicationContextInitializers have been called but before any bean
259+ definitions are loaded.
259260. An `ApplicationPreparedEvent` is sent just before the refresh is started but after bean
260261definitions have been loaded.
261262. An `ApplicationStartedEvent` is sent after the context has been refreshed but before any
@@ -264,13 +265,14 @@ application and command-line runners have been called.
264265been called. It indicates that the application is ready to service requests.
265266. An `ApplicationFailedEvent` is sent if there is an exception on startup.
266267
267- The above list only includes ``SpringApplicationEvent``s that are tied to a `SpringApplication`.
268- In addition to these, the following events are also published after `ApplicationPreparedEvent`
269- and before `ApplicationStartedEvent`:
268+ The above list only includes ``SpringApplicationEvent``s that are tied to a
269+ `SpringApplication`. In addition to these, the following events are also published after
270+ `ApplicationPreparedEvent` and before `ApplicationStartedEvent`:
270271
271272. A `ContextRefreshedEvent` is sent when an `ApplicationContext` is refreshed.
272- . A `WebServerInitializedEvent` is sent after the `WebServer` is ready. `ServletWebServerInitializedEvent`
273- and `ReactiveWebServerInitializedEvent` are the servlet and reactive variants respectively.
273+ . A `WebServerInitializedEvent` is sent after the `WebServer` is ready.
274+ `ServletWebServerInitializedEvent` and `ReactiveWebServerInitializedEvent` are the servlet
275+ and reactive variants respectively.
274276
275277TIP: You often need not use application events, but it can be handy to know that they
276278exist. Internally, Spring Boot uses events to handle a variety of tasks.
0 commit comments