# HG changeset patch # User Dirk Olmes # Date 1597321900 -7200 # Node ID b4221c1389af7786aa4e7d70621796422dcbf94c # Parent 856e646efa170dffddb2b8591ed7cbad1118b6c1 Nur die REST Endpunkte, die in der config explizit angezogen werden, sind nachher auch registriert diff -r 856e646efa17 -r b4221c1389af 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 Thu Aug 13 14:16:13 2020 +0200 +++ b/spring-boot-playground/src/main/java/de/comline/spring/application/Application.java Thu Aug 13 14:31:40 2020 +0200 @@ -15,9 +15,7 @@ import org.springframework.context.annotation.Import; import de.comline.spring.application.Application.CustomConfig; -import de.comline.spring.controller.CustomLogicController; import de.comline.spring.controller.HelloController; -import de.comline.spring.service.CustomLogicService; //@SpringBootApplication @@ -58,9 +56,8 @@ HttpMessageConvertersAutoConfiguration.class, WebMvcAutoConfiguration.class, - HelloController.class, - CustomLogicController.class, - CustomLogicService.class + HelloController.class + // Note how we do not list the CustomLogicController here, hence the controller is not bound }) // @formatter:on static class CustomConfig {