I am trying to avoid component scanning to reduce start up time in our module tests, and in our web app in general.
When I replace @SpringBootApplication
with @SpringBootConfiguration @EnableAutoConfiguration
, I get the following error:
Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean
Can I manually import the EmbeddedServletContainerFactory
somehow?