I have some controller tests (Scalatest) which are running very slowly. When I switched on TRACE level logging, I noticed the following:
2019-10-10 07:54:35,314 level=[DEBUG] message=[Preloading singletons: 10541ms] logger=[com.google.inject.internal.util.Stopwatch] thread=[pool-1-thread-1] rid= user=
Why would the dependency injection take so long? Because I have lots of controller classes to test this issue is compounding to lead to very slow test completion. Any idea why it would be so slow or how to debug this further.