# HG changeset patch # User Dirk Olmes # Date 1597320973 -7200 # Node ID 856e646efa170dffddb2b8591ed7cbad1118b6c1 # Parent 60afb461bf6cb16ac8da8d4b4e0e3d495447a258 Weg von der one-size-fits-all @EnableAutoConfiugration hin zu einer bewussten Auswahl von auto config Klassen diff -r 60afb461bf6c -r 856e646efa17 spring-boot-playground/src/main/java/de/comline/spring/application/Application.java --- a/spring-boot-playground/src/main/java/de/comline/spring/application/Application.java Tue Aug 11 16:08:16 2020 +0200 +++ b/spring-boot-playground/src/main/java/de/comline/spring/application/Application.java Thu Aug 13 14:16:13 2020 +0200 @@ -8,6 +8,7 @@ import org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration; import org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration; import org.springframework.boot.autoconfigure.web.servlet.ServletWebServerFactoryAutoConfiguration; +import org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @@ -48,14 +49,14 @@ // ServletWebServerFactoryAutoConfiguration for bringing up the embedded tomcat // DispatcherServletAutoConfiguration for detecting the REST controllers + // WebMvcAutoConfiguration enabling Jackson response serialization // @formatter:off @Import({ ServletWebServerFactoryAutoConfiguration.class, DispatcherServletAutoConfiguration.class, JacksonAutoConfiguration.class, HttpMessageConvertersAutoConfiguration.class, -// HttpEncodingAutoConfiguration.class, -// CodecsAutoConfiguration.class, + WebMvcAutoConfiguration.class, HelloController.class, CustomLogicController.class,