changeset 3:b4221c1389af

Nur die REST Endpunkte, die in der config explizit angezogen werden, sind nachher auch registriert
author Dirk Olmes <dirk.olmes@codedo.de>
date Thu, 13 Aug 2020 14:31:40 +0200
parents 856e646efa17
children 92d52e4ac567
files spring-boot-playground/src/main/java/de/comline/spring/application/Application.java
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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 {