David Kubecka
08/13/2024, 10:04 AMdebug=true
, but it doesn't help because it only affects the Spring itself.David Kubecka
08/13/2024, 10:06 AMhho
08/13/2024, 11:51 AMDavid Kubecka
08/13/2024, 11:52 AMhho
08/13/2024, 12:00 PMstrace
on MacOS is though).ashmelev
08/13/2024, 2:51 PMdebug: true
(or debug=true
to the top of you application.yaml (or application.properties) file and re-start. Watch to what line things hand on...ashmelev
08/13/2024, 2:51 PMDaniel Pitts
08/13/2024, 2:54 PMDavid Kubecka
08/13/2024, 3:29 PMdebug=true
. Didn't help.David Kubecka
08/13/2024, 3:33 PMDaniel Pitts
08/13/2024, 3:33 PMDaniel Pitts
08/13/2024, 3:33 PMDavid Kubecka
08/13/2024, 3:35 PMDavid Kubecka
08/13/2024, 3:39 PM17:21:34.198 [main] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils -- Could not detect default configuration classes for test class [xxx]: CucumberTestContext does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
17:21:34.288 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper -- Found @SpringBootConfiguration xxx for test class xxx
17:21:34.533 [main] INFO org.springframework.boot.devtools.restart.RestartApplicationListener -- Restart disabled due to context in which it is running
17:22:01,058 |-INFO in ch.qos.logback.core.joran.util.ConfigurationWatchListUtil@53630682 - Adding [jar:file:/Users/xxx/.m2/repository/org/springframework/boot/spring-boot/3.2.5/spring-boot-3.2.5.jar!/org/springframework/boot/logging/logback/defaults.xml] to configuration watch list.
This is followed by a bunch of log events from logback init and immediately after that Spring starts starting.
But apparently Spring devtools is doing something right at the beginning (see the first 3 log events). Then follows the mysterious 30s silence.Daniel Pitts
08/13/2024, 3:40 PMDavid Kubecka
08/13/2024, 3:44 PMDaniel Pitts
08/13/2024, 3:45 PMDavid Kubecka
08/13/2024, 3:45 PMDaniel Pitts
08/13/2024, 3:46 PMDavid Kubecka
08/13/2024, 3:48 PMDaniel Pitts
08/13/2024, 3:49 PMDavid Kubecka
08/13/2024, 3:50 PMDaniel Pitts
08/13/2024, 3:52 PMDavid Kubecka
08/13/2024, 3:54 PMDaniel Pitts
08/13/2024, 3:54 PMDavid Kubecka
08/13/2024, 3:55 PMDaniel Pitts
08/13/2024, 3:55 PMDaniel Pitts
08/13/2024, 3:56 PMDavid Kubecka
08/13/2024, 3:58 PMDavid Kubecka
08/13/2024, 4:05 PMDaniel Pitts
08/13/2024, 4:05 PMDaniel Pitts
08/13/2024, 4:07 PMDavid Kubecka
08/13/2024, 4:09 PMDaniel Pitts
08/13/2024, 4:10 PMDaniel Pitts
08/13/2024, 4:10 PMDavid Kubecka
08/13/2024, 4:12 PMDavid Kubecka
08/13/2024, 4:13 PMDaniel Pitts
08/13/2024, 4:14 PMDaniel Pitts
08/13/2024, 4:15 PMDavid Kubecka
08/13/2024, 4:20 PMDaniel Pitts
08/13/2024, 6:10 PMbodiam
08/15/2024, 12:45 PM/etc/hosts
, and suddenly everything was fast again. Something similar is mentioned here: https://stackoverflow.com/questions/39636792/jvm-takes-a-long-time-to-resolve-ip-address-for-localhostDaniel Pitts
08/15/2024, 1:39 PM