The logback was printed at 15:00:01, but the banner was printed at 15:00:07. The only thing in between is Springboot's internal code.
15:00:01,952 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [REQUEST] to Logger[request]
15:00:01,952 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
15:00:01,952 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@33c911a1 - Registering current configuration as safe fallback point
Preparing spring application run 2022-09-26T15:00:01
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.7.4)
22-09-26 15:00:07.222 [restartedMain] INFO com.github.zgqq.flycatblog.BlogApplication.logStarting 55 - Starting BlogApplication using Java 17.0.4.1 on zhanguiqis-MacBook-Air.local with PID 61761 (/Users/zgqq/Dropbox/Project/flycat-blog/build/classes/java/main started by zgqq in /Users/zgqq/Dropbox/Project/flycat-blog)
22-09-26 15:00:07.222 [restartedMain] DEBUG com.github.zgqq.flycatblog.BlogApplication.logStarting 56 - Running with Spring Boot v2.7.4, Spring v5.3.23
It could be the computer environment, because I don't have this problem on my server.
Comment From: bclozel
Isn't this related to local DNS resolution?
Comment From: zgqq
This is my hosts file. I didn't have this problem on my computer before.
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
# Added by Docker Desktop
# To allow the same kube context to work on the host and the container:
127.0.0.1 kubernetes.docker.internal
# End of section
Isn't this related to local DNS resolution?
Comment From: bclozel
you don't have the .local variant, which is being resolved as seen in the logs:
using Java 17.0.4.1 on zhanguiqis-MacBook-Air.local
I'm closing this as this is a well known issue with macOS and nothing Spring Boot can help with.