https://docs.spring.io/spring-boot/docs/2.4.x/reference/htmlsingle/#boot-features-spring-application

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::   v2.4.11

2019-04-31 13:09:54.117  INFO 56603 --- [           main] o.s.b.s.app.SampleApplication            : Starting SampleApplication v0.1.0 on mycomputer with PID 56603 (/apps/myapp.jar started by pwebb)
2019-04-31 13:09:54.166  INFO 56603 --- [           main] ationConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@6e5a8246: startup date [Wed Jul 31 00:08:16 PDT 2013]; root of context hierarchy
2019-04-01 13:09:56.912  INFO 41370 --- [           main] .t.TomcatServletWebServerFactory : Server initialized with port: 8080
2019-04-01 13:09:57.501  INFO 41370 --- [           main] o.s.b.s.app.SampleApplication            : Started SampleApplication in 2.992 seconds (JVM running for 3.658)

As we've updated the example over the years, things have become a bit inconsistent:

  • The PID isn't the same in all the log lines
  • The date goes backwards
  • The logged startup date doesn't match the date at the start of the line

I wonder if we could automate capturing the example output to avoid the problem reoccurring.

Comment From: philwebb

+1 to automating it, although I’d ideally like to have consistent dates and startup time values.

Comment From: philwebb

Given all the doc updates, I’d also be tempted to do this only in 2.5.x or 2.6.x

Comment From: snicoll

Perhaps doing it manually in 2.4.x then?

Comment From: philwebb

Given all the doc updates, I’d also be tempted to do this only in 2.5.x or 2.6.x

Thinking some more, the merge probably won't be that painful so lets aim for 2.4.x

Comment From: wilkinsona

This has got a bit worse in the 3.0 docs since we changed the date format. I'd like to fix this in all branches so that we don't have to remember to update things manually any more.