3 import org.springframework.beans.factory.annotation.Value;
4 import org.springframework.boot.SpringApplication;
5 import org.springframework.boot.autoconfigure.SpringBootApplication;
6 import org.springframework.context.annotation.Bean;
7 import org.springframework.web.reactive.function.client.WebClient;
10 public class DemoApplication {
13 public RemoteContentService service(@Value("${remote.host}")String remoteHost)
15 return new RemoteContentService(WebClient.create(remoteHost));
19 public static void main(String[] args) {
20 SpringApplication.run(DemoApplication.class, args);