WIP:service
[demos/testing] / src / main / java / de / juplo / demo / DemoApplication.java
index 53303c5..88b890c 100644 (file)
@@ -4,15 +4,15 @@ import org.springframework.beans.factory.annotation.Value;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.context.annotation.Bean;
+import org.springframework.web.reactive.function.client.WebClient;
 
 @SpringBootApplication
 public class DemoApplication {
 
   @Bean
-  public RemoteContentController remoteContentController(
-      @Value("${remote.host}")String remoteHost)
+  public RemoteContentService service(@Value("${remote.host}")String remoteHost)
   {
-    return new RemoteContentController(remoteHost);
+    return new RemoteContentService(WebClient.create(remoteHost));
   }