How to prevent spring-boot autoconfiguration for spring-web?
I'm using spring-boot and added spring-web dependency in maven pom, to make use of RestTemplate . Now spring tries to initialize an EmbeddedServletContext . How can I prevent it? Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean. at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:133)